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.

This commit is contained in:
Ivan Davidov 2016-04-11 22:23:20 +03:00
parent ecd53af5ce
commit 07da9983c1

View File

@ -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