Updating code for exposing of overlay mounts under /live too.
authorDaniel Baumann <daniel@debian.org>
Wed, 26 Sep 2012 11:51:50 +0000 (13:51 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 26 Sep 2012 12:08:20 +0000 (14:08 +0200)
scripts/boot/9990-overlay.sh

index 9318f9b..d377d34 100755 (executable)
@@ -426,8 +426,9 @@ setup_unionfs ()
                fi
        done
 
-       # shows cow fs on /overlay (FIXME: do we still need/want this? probably yes)
        mkdir -p "${rootmnt}/live/overlay"
-       mount -o move /live/overlay "${rootmnt}/live/overlay" >/dev/null 2>&1 || mount -o bind /overlay "${rootmnt}/live/overlay" || log_warning_msg "Unable to move or bind /overlay to ${rootmnt}/live/overlay"
+       mount -o move /live/overlay "${rootmnt}/live/overlay" > /dev/null 2>&1 || \
+               mount -o bind /overlay "${rootmnt}/live/overlay" || \
+               log_warning_msg "W: failed to mount /overlay to ${rootmnt}/live/overlay"
 
 }