[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#681579: live-boot + FAI fails: tmpfs seems to hide mounted image

Package: live-boot
Severity: important

Dear everybody,

I described the situation already on the live-boot mailing list in
this thread:

Bisecting [1] the code showed that the bad commit is f92f379a6e868bc [2]

The relevant part seems to be:

-	mkdir -p /overlay
+	# tmpfs file systems
+	touch /etc/fstab
+	mkdir -p /live
+	mount -t tmpfs tmpfs /live
+	mkdir -p /live/overlay

I am not familiar with the code, but the tmpfs seems to hide the cd-image
which is mounted at /live/image.  Trying to mount aufs fails, there is
no /live/image accessible anymore.  To test this hypothesis, I added
two lines after the tmpfs setup:

root@wheezy:~/live-boot# git diff
diff --git a/scripts/live b/scripts/live
index af8c12e..9eb37b2 100755
--- a/scripts/live
+++ b/scripts/live
@@ -957,6 +958,8 @@ setup_unionfs ()
        mkdir -p /live
        mount -t tmpfs tmpfs /live
        mkdir -p /live/overlay
+       mkdir -p /live/image
+       mount /dev/sr0 /live/image

        # Looking for persistence devices or files
        if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]

With this modification, live-boot works again as expected and the
problem with aufs vanishes.

I hope this observations help solving the issue in time for wheezy.

Best regards,


[1] <URL:https://lists.debian.org/debian-live/2012/07/msg00091.html>
[2] <URL:http://live.debian.net/gitweb?p=live-boot.git;a=commitdiff;h=f92f379a6e868bc486c050ff5ca81c1707da7374>

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply to: