Fix extroot by UUID
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jul 2012 11:06:32 +0000 (11:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jul 2012 11:06:32 +0000 (11:06 +0000)
commit3686cbd5ca2e928639ffd11f6497aa79d9ca24ac
treeaaa6f8c2e5fe1057733e3b1fd98913ebddcbd75c
parent89b6c406bd683a078cc730a71ec578a2e1574e40
Fix extroot by UUID

Extroot works fine when the target device is specified by a path. It fails
however if the device is specified by UUID (the target partition gets mounted
much later by hotplug hooks). This is because the blkid command is no longer
compiled into BusyBox (since changeset [1]) so it's unavailable for the
preinit phase.

The closest bug report I was able to find is [2], although the reporting person
mentions that /tmp/overlay-disabled showed up which wasn't there in my case.

This patch sets PATH and LD_LIBRARY_PATH environment variables so that the
blkid command installed on the target device can be used by that particular
preinit script.

[1] https://dev.openwrt.org/changeset/26245
[2] https://dev.openwrt.org/ticket/10653

Signed-off-by: Jaroslaw Swierczynski <jarek1701@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32567 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/block-mount/files/50_determine_usb_root