summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-09-30 09:59:45 +0200
committerDaniel Baumann <daniel@debian.org>2012-09-30 09:59:45 +0200
commit5078ff3dd0fd6b5c2d9e1606ecceb4ea5bf47946 (patch)
tree0dcddbb77db84fc8db72d4f2c5df155047a37fe0 /scripts
parente182c1d4f7ec50f1498d900f7c6250191537457f (diff)
downloadlive-boot-5078ff3dd0fd6b5c2d9e1606ecceb4ea5bf47946.tar.gz
live-boot-5078ff3dd0fd6b5c2d9e1606ecceb4ea5bf47946.zip
Applying slightly modified patch from Reinhard Tartler <siretart@tauware.de> to ensure that a potentially stray tmpfs on /live/overlay gets removed to fix netboot failures (Closes: #685375).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/boot/9990-overlay.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh
index 3ee382e..55254c7 100755
--- a/scripts/boot/9990-overlay.sh
+++ b/scripts/boot/9990-overlay.sh
@@ -425,4 +425,8 @@ setup_unionfs ()
mount -o bind /live/overlay "${rootmnt}/lib/live/overlay" || \
log_warning_msg "W: failed to mount /live/overlay to ${rootmnt}/lib/live/overlay"
+ # ensure that a potentially stray tmpfs gets removed
+ # otherways, initramfs-tools is unable to remove /live
+ # and fails to boot
+ umount /live/overlay || true
}