Bug 470317

Summary: LiveCD persistent overlay incompatible with swap, /mnt/LiveCD, and persistent home
Product: [Fedora] Fedora Reporter: Adam Goode <adam>
Component: LiveCDAssignee: Jeremy Katz <katzj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: dcantrell, jbgallagher2000, jpechane
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-21 18:31:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Goode 2008-11-06 17:12:17 UTC
Description of problem:
When LiveCD persistent overlay is enabled, /etc/rc.d/init.d/livesys will run exactly once.

The livesys initscript does some things that should be done exactly once (like create users), and other things that should always be done (enable swap, mount persistent /home).

When persistent overlay is enabled, this will cause livesys to run exactly once:
if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ] || [ -e /.liveimg-configured ] ; then
    exit 0
fi

touch /.liveimg-configured


Swap will not get enabled, mounting the live image will not occur, and persistent home will not get mounted once the machine has been booted once.



To resolve this, livesys should be split into 2 parts, one that always runs, and one that doesn't. Or, some of the operations can be reordered in the file to come before the [ -e /.liveimg-configured ] line.

Comment 1 Adam Goode 2008-11-06 17:16:08 UTC
Alternatively, .liveimg-configured and .liveimg-late-configured can go into some guaranteed-transient place like some tmpfs somewhere.

Comment 2 Jeremy Katz 2008-11-06 18:37:26 UTC
Good catch!  Should be fixed in git by splitting things up a little

Comment 3 Adam Goode 2008-11-06 20:05:59 UTC
Thanks,

Should a bug be filed on spin-kickstarts as well? Or will that automatically pull in the fix?

Comment 4 Jeremy Katz 2008-11-06 20:11:18 UTC
That's where I fixed it as the configs all live there these days

Comment 5 Jeremy Katz 2008-11-08 21:19:49 UTC
*** Bug 470643 has been marked as a duplicate of this bug. ***

Comment 6 Bug Zapper 2008-11-26 04:54:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 J Gallagher 2009-01-06 18:21:36 UTC
In a livecd with just a persistent home image (no persistent overlay), a related problem is that persistent home is unmounted when you log out of the xsession, and is never remounted. So you can not log back in without a full reboot or switching to a vt and manually mounting the persistent home .img file.

I don't see why the persistent home image should be unmounted unless a full shutdown/reboot is executed. And even if it has to be unmounted, then gdm should remount to enable logging back in.

Comment 8 Jeremy Katz 2009-07-21 18:31:12 UTC
Closing out bug that's been in MODIFIED for a while.