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:
parent
ed419e2d57
commit
d65be3dd2a
|
@ -58,6 +58,7 @@ do
|
||||||
for i in `ls /media 2>/dev/null`; do
|
for i in `ls /media 2>/dev/null`; do
|
||||||
if [ -f /media/$i/$ROOT_IMAGE ] ; then
|
if [ -f /media/$i/$ROOT_IMAGE ] ; then
|
||||||
found="yes"
|
found="yes"
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ "$found" = "yes" ]; then
|
if [ "$found" = "yes" ]; then
|
||||||
|
|
|
@ -2,7 +2,7 @@ DESCRIPTON = "A live image init script"
|
||||||
|
|
||||||
SRC_URI = "file://init-live.sh"
|
SRC_URI = "file://init-live.sh"
|
||||||
|
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
|
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
|
||||||
|
|
Loading…
Reference in New Issue