initramfs-live-boot: Fix script when multiple mounts are present and the last one isn't the correct one

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2009-04-23 12:21:06 +01:00
parent ed419e2d57
commit d65be3dd2a
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ do
for i in `ls /media 2>/dev/null`; do
if [ -f /media/$i/$ROOT_IMAGE ] ; then
found="yes"
break
fi
done
if [ "$found" = "yes" ]; then

View File

@ -2,7 +2,7 @@ DESCRIPTON = "A live image init script"
SRC_URI = "file://init-live.sh"
PR = "r1"
PR = "r2"
do_install() {
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init