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 + 1 file changed, 1 insertion(+) (limited to 'meta/packages/initrdscripts/files') diff --git a/meta/packages/initrdscripts/files/init-live.sh b/meta/packages/initrdscripts/files/init-live.sh index d4e53713ef..c96b1f47c3 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 -- cgit v1.2.3