From 07da9983c1ae8faac1ff0c6144163d7231c5e520 Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Mon, 11 Apr 2016 22:23:20 +0300 Subject: [PATCH] Unmount device on overlay failure before continuing to next device. Overlay support works from different device without unmounting the first device, so this might be a bug in BusyBox. --- src/08_generate_rootfs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/08_generate_rootfs.sh b/src/08_generate_rootfs.sh index 8e42f4493..221c78be6 100755 --- a/src/08_generate_rootfs.sh +++ b/src/08_generate_rootfs.sh @@ -101,6 +101,7 @@ for DEVICE in /dev/* ; do OUT=\$? if [ ! "\$OUT" = "0" ] ; then echo " Mount failed (probably on vfat), moving on with other devices." + umount /tmp/mnt 2>/dev/null continue fi else