Bug 706122 - USB overlay (persistent storage) not being mounted
Summary: USB overlay (persistent storage) not being mounted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: https://fedoraproject.org/wiki/Common...
: 707414 707697 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 14:43 UTC by Paul Blankenbaker
Modified: 2011-06-14 15:35 UTC (History)
5 users (show)

Fixed In Version: dracut-009-11.fc15
Clone Of:
Environment:
Last Closed: 2011-05-26 21:50:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
There was a problem executing the following command: `cp /tmp/tmpNWa5yR/LiveOS/squashfs.img ' (4.86 KB, text/plain)
2011-05-25 13:49 UTC, satellitgo
no flags Details

Description Paul Blankenbaker 2011-05-19 14:43:04 UTC
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).

Comment 1 Harald Hoyer 2011-05-20 11:00:15 UTC
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

Comment 2 Harald Hoyer 2011-05-20 11:44:09 UTC
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.

Comment 3 Harald Hoyer 2011-05-20 11:44:26 UTC
Care to test it?

Comment 4 Paul Blankenbaker 2011-05-20 12:57:08 UTC
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.

Comment 5 Fedora Update System 2011-05-23 09:03:52 UTC
dracut-009-11.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/dracut-009-11.fc15

Comment 6 satellitgo 2011-05-24 23:36:47 UTC
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

Comment 7 Fedora Update System 2011-05-25 02:28:31 UTC
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).

Comment 8 satellitgo 2011-05-25 04:16:55 UTC
No package dracut-009-11.fc15 available

Comment 9 James Laska 2011-05-25 11:52:00 UTC
Documented as a Fedora 15 CommonBug - https://fedoraproject.org/wiki/Common_F15_bugs#live-overlay

Comment 10 satellitgo 2011-05-25 13:49:11 UTC
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'`

Comment 11 Harald Hoyer 2011-05-25 13:56:01 UTC
(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!

Comment 12 Harald Hoyer 2011-05-25 13:56:56 UTC
(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!

Comment 13 satellitgo 2011-05-25 14:02:06 UTC
(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)

Comment 14 James Laska 2011-05-25 14:13:58 UTC
(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

Comment 15 satellitgo 2011-05-25 17:49:46 UTC
see:https://bugzilla.redhat.com/show_bug.cgi?id=707697

Comment 16 Luke Macken 2011-05-25 18:01:22 UTC
*** Bug 707697 has been marked as a duplicate of this bug. ***

Comment 17 Fedora Update System 2011-05-26 21:50:36 UTC
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.

Comment 18 Luke Macken 2011-06-14 15:35:38 UTC
*** Bug 707414 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.