Breaks booting with nfsroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
live-boot (Debian) |
Fix Released
|
Unknown
|
|||
live-boot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Imported from Debian bug http://
Package: live-boot
Version: 3.0~b1-1
Severity: normal
Hi,
I'm trying to setup a FAI netbooting environment, which uses live-boot
for booting the installation system via NFS. As union filesystem, I'm
using overlayfs by using the union=overlayfs kernel commandline parameter.
the live-boot scripts all seem to run as expected. However, in the last
stage, run-init fails with this error message:
run-init: nuking initramfs contents: Directory not empty.
Kernel panic - not syncing: Attempted to kill init! [...]
By booting with 'break=init', I could verify that /root is fully in
place, that is, all bind mounts succeeded. However, a "rm -rf
/live/overlayfs" fails with "Device busy". If I manually 'umount
/tmp/overlayfs', the boot process continues successfully.
While reading the commit logs, I noticed this commit:
Laying tmpfs on /live/overlay only during initramfs stage, fixes boot
failure with plain filesystems (Closes: #681579).
---
diff --git a/scripts/
index cb12c4b..00c53c8 100755
--- a/scripts/
+++ b/scripts/
@@ -155,9 +155,8 @@ setup_unionfs ()
# tmpfs file systems
touch /etc/fstab
- mkdir -p /live
- mount -t tmpfs tmpfs /live
mkdir -p /live/overlay
+ mount -t tmpfs tmpfs /live/overlay
# Looking for persistence devices or files
if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]
It seems to me that when you mount the tmpfs in /live/overlay, you need
to umount it before booting manually as well, that is, after
bind-mounting /live to the final boot location.
Cheers,
Reinhard
Related branches
Changed in live-boot (Debian): | |
importance: | Undecided → Unknown |
Changed in live-boot (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package live-boot - 3.0~b1-1ubuntu1
---------------
live-boot (3.0~b1-1ubuntu1) quantal; urgency=low
* ensure that a potentially stray tmpfs gets removed
otherways, initramfs-tools is unable to remove /live
and fails to boot. LP: #1043834
-- Reinhard Tartler <email address hidden> Thu, 20 Sep 2012 09:37:53 +0200