Breaks booting with nfsroot

Bug #1043834 reported by Reinhard Tartler on 2012-08-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
live-boot (Debian)
Fix Released
live-boot (Ubuntu)

Bug Description

Imported from Debian bug

Package: live-boot
Version: 3.0~b1-1
Severity: normal


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:;a=commitdiff;h=9dac5b65e0e6aaa9e194ec5e423476c78f6209e5

Laying tmpfs on /live/overlay only during initramfs stage, fixes boot
failure with plain filesystems (Closes: #681579).

diff --git a/scripts/boot/ b/scripts/boot/
index cb12c4b..00c53c8 100755
--- a/scripts/boot/
+++ b/scripts/boot/
@@ -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.


Related branches

Changed in live-boot (Debian):
importance: Undecided → Unknown
Launchpad Janitor (janitor) wrote :

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

Changed in live-boot (Ubuntu):
status: New → Fix Released
Changed in live-boot (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.