Bug 470317 - LiveCD persistent overlay incompatible with swap, /mnt/LiveCD, and persistent home
Summary: LiveCD persistent overlay incompatible with swap, /mnt/LiveCD, and persistent...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: LiveCD
Version: 10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
: 470643 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-06 17:12 UTC by Adam Goode
Modified: 2013-01-10 04:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-21 18:31:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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