Description of problem: When booting a Fedora 15 system from a Live USB memory stick with a persistent overlay, the overlay image fails to mount because the directory /overlayfs is not present. Version-Release number of selected component (if applicable): Fedora 15 beta area, in particular the following packages are on the LiveCD: [root@localhost ~]# rpm -q kernel dracut plymouth kernel-2.6.38.6-27.fc15.i686 dracut-009-10.fc15.noarch plymouth-0.8.4-0.20110510.2.fc15.i686 How reproducible: Always Steps to Reproduce: 1. Create a Fedora 15 Live Image: livecd-creator -v --logfile /tmp/livecd-creator.log -c /usr/share/spin-kickstarts/fedora-livecd-desktop.ks 2. Use the Fedora LiveUSB Creator tool to create a bootable USB image using the ISO image created in step 1 and make sure you include some persistent storage. 3. Boot from the USB image. Actual results: During boot, dracut will print out a message about missing /overlayfs and the persistence layer on the USB device will NOT be used (if you modify a file like /etc/hosts and then reboot, your modifications will be lost). Expected results: The persistence layer on the USB device is expected to be used. Additional info: To temporarily work around the problem (to fix it such that the overlay is used): 1. Edit the kernel boot parameters and add: rd.break=pre-trigger 2. When the break point is reached by dracut and you are at a prompt, enter the following commands: mkdir /overlayfs exit 3. When the break point is reached the second time, enter the command: exit 4. After the system finishes booting, the persistence layer (overlay) is honored as expected (if you modify a file like /etc/hosts and then reboot and repeat the steps above, you will see that your modifications were kept between reboots).
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root index f7498f2..4d1d902 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root +++ b/modules.d/90dmsquash-live/dmsquash-live-root @@ -86,9 +86,9 @@ do_live_overlay() { setup="" if [ -n "$devspec" -a -n "$pathspec" -a -n "$overlay" ]; then mkdir -m 0755 /run/initramfs/overlayfs - mount -n -t auto $devspec /overlayfs || : - if [ -f /overlayfs$pathspec -a -w /overlayfs$pathspec ]; then - losetup $OVERLAY_LOOPDEV /overlayfs$pathspec + mount -n -t auto $devspec /run/initramfs/overlayfs || : + if [ -f /run/initramfs/overlayfs$pathspec -a -w /run/initramfs/overlayfs$pathspec ]; then + losetup $OVERLAY_LOOPDEV /run/initramfs/overlayfs$pathspec if [ -n "$reset_overlay" ]; then dd if=/dev/zero of=$OVERLAY_LOOPDEV bs=64k count=1 2>/dev/null fi
This dracut update would fix the issue. http://harald.fedorapeople.org/downloads/dracut/dracut-009-11.fc15/ You could replace the initramfs on the USB stick with a new generated one.
Care to test it?
Bottom line: Your update fixed the issue I was seeing and this ticket can be closed as far as I am concerned. Here's the details of what I did to test your update: 1. I downloaded your updated RPM: http://harald.fedorapeople.org/downloads/dracut/dracut-009-11.fc15/dracut-009-11.fc15.noarch.rpm 2. I placed your updated RPM into the yum repository directory (yum/repo/noarch) that is created when building the Network Security Toolkit ISO image (a distribution based on Fedora). 3. I built the "minimal" NST ISO image using the command: (cd livecd; make iso-minimal). This takes about 30 minutes in my environment. 4. I verified in the log file that the new dracut package was picked up and installed in the new ISO image. On a side note, I've been noticing the following message when dracut is added during livecd-creator builds (it suggests to me that someone else is producing a dracut.conf file - not that there is necessarily anything wrong with that, just something I noticed): Installing: plymouth-scripts ##################### [499/827] warning: /etc/dracut.conf created as /etc/dracut.conf.rpmnew Installing: dracut ##################### [500/827] 5. I used the LiveUSB Creator tool to install the ISO image to a USB memory stick and enabled a 256MB persistent overlay. 6. I booted a machine using the USB memory stick (did not see error message about missing /overlayfs anymore). 7. I modified the /etc/hosts file (just added a line) 8. I rebooted the system (did not see error message about missing /overlayfs anymore) 9. When I looked at the /etc/hosts file, my modifications were still there (persisted in the overlay file). So, things seem to be working again related to the live USB overlay filesystem as far as I am concerned and this ticket can be closed as far as I am concerned.
dracut-009-11.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/dracut-009-11.fc15
on Live USB Boot: /run/initramfs/overlayfs: not mounted I have bugzilla and cannot find liveusb-creator in listings for f15. I just tested liveusb-creator-3.11.0-1.fc15(noarch) and it does not find the persistence file even though it writes it. written in f15 gnome3-shell to USB with post release of f15-live-Desktop.iso I cannot file in bugzilla as it is not in lists
Package dracut-009-11.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dracut-009-11.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/dracut-009-11.fc15 then log in and leave karma (feedback).
No package dracut-009-11.fc15 available
Documented as a Fedora 15 CommonBug - https://fedoraproject.org/wiki/Common_F15_bugs#live-overlay
Created attachment 500821 [details] There was a problem executing the following command: `cp /tmp/tmpNWa5yR/LiveOS/squashfs.img ' liveusb-creator in gnome3-shell updated 05/25/2011: Downloaded fedora-15-i686-live-Desktop from menu see attachment for liveusb-creator.log There was a problem executing the following command: `cp /tmp/tmpNWa5yR/LiveOS/squashfs.img '/media/6212-7F24/LiveOS/squashfs.img'`
(In reply to comment #8) > No package dracut-009-11.fc15 available you have to wait until the mirrors sync and please file bugs against liveusb-creator in a separate bugzilla!
(In reply to comment #6) > on Live USB Boot: > /run/initramfs/overlayfs: not mounted > > I have bugzilla and cannot find liveusb-creator in listings for f15. Search harder!
(In reply to comment #12) > (In reply to comment #6) > > on Live USB Boot: > > /run/initramfs/overlayfs: not mounted > > > > I have bugzilla and cannot find liveusb-creator in listings for f15. > > Search harder! I cannot file the bug as liveusb-creator is not on dropdown lists to file against in Bugzilla listing from gnome3-shell install. I see it in search field but no way to file bug from search that I could find. (nubie)
(In reply to comment #13) > I cannot file the bug as liveusb-creator is not on dropdown lists to file > against in Bugzilla listing from gnome3-shell install. I see it in search field > but no way to file bug from search that I could find. (nubie) I'm not sure why you wouldn't be seeing it. liveusb-creator is listed in the bugzilla component drop-down list for product=Fedora. https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=15&component=liveusb-creator
see:https://bugzilla.redhat.com/show_bug.cgi?id=707697
*** Bug 707697 has been marked as a duplicate of this bug. ***
dracut-009-11.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 707414 has been marked as a duplicate of this bug. ***