From d65be3dd2aaa643b5596c8470caf7f291513efee Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 23 Apr 2009 12:21:06 +0100 Subject: initramfs-live-boot: Fix script when multiple mounts are present and the last one isn't the correct one Signed-off-by: Richard Purdie --- meta/packages/initrdscripts/files/init-live.sh | 1 + meta/packages/initrdscripts/initramfs-live-boot_1.0.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/packages/initrdscripts/files/init-live.sh b/meta/packages/initrdscripts/files/init-live.sh index d4e53713e..c96b1f47c 100644 --- a/meta/packages/initrdscripts/files/init-live.sh +++ b/meta/packages/initrdscripts/files/init-live.sh @@ -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 diff --git a/meta/packages/initrdscripts/initramfs-live-boot_1.0.bb b/meta/packages/initrdscripts/initramfs-live-boot_1.0.bb index 2c92f7377..07d349c8f 100644 --- a/meta/packages/initrdscripts/initramfs-live-boot_1.0.bb +++ b/meta/packages/initrdscripts/initramfs-live-boot_1.0.bb @@ -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 -- cgit v1.2.3