[Fedora-livecd-list] [PATCH 6/7] anaconda: liveinst.sh: support turboLiveInst/genMinInstDelta

Jeremy Katz katzj at redhat.com
Tue Sep 18 17:16:28 UTC 2007


On Mon, 2007-09-17 at 22:31 -0500, Douglas McClendon wrote: 
> Jeremy Katz wrote:
> > On Mon, 2007-09-17 at 12:34 -0500, Douglas McClendon wrote:
> >> this patch takes care of the anaconda side of taking advantage of 
> >> livecd's created with a livecd-tools that has 
> >> turboLiveInst/genMinInstDelta support.  But the code does check for the 
> >> legacy situation, and handles it gracefully.  Thus this patch is safe 
> >> even in the absence of the actual beneficial final patch to livecd-tools.
> > 
> > So as you alluded in your later mail, this looks like it could be
> > confused if something else ended up using loop118 instead.  Is there a
> > good reason not to just set up the minimal snapshot from the initrd and
> > then just use it if it exists?  That would then make the anaconda side
> > super-crazy-simple (look for /dev/mapper/live-osimg-min and use it if it
> > exists).  
> 
> The danger would be loop117, as that is the one created at install time. 
>   loop118 being locked up at initramfs time.

Not if new anaconda is used with old livecd-creator -- then loop118
wouldn't have been used and something else could use it while the live
system is running.

> The reason why I think it should stay as is, instead of setting 
> everything up at initramfs time, is because the loop117 gets associated 
> with the decompressed-into-devshm contents of loop118.  The 
> decompression being 7kb->1.2M in the typical case.
> 
> I'd say that the 1.2M ram hit should only be taken during install, and 
> that outweighs the benefits of moving the complexity from liveinst.sh to 
> initramfs.

But the time that the memory hit matters the _most_ is during the
install as we have to have swap disabled during parts of it.  Otherwise,
swap is available and can be used.  It also means that there's less need
to worry about the cleanup case in anaconda.  Also, it takes care of my
biggest complaint from the past (anaconda having to know too many
details of how things are setup -- I _really_ like that right now,
anaconda just needs to know to look at block device that's already set
up and nothing more is needed)

Patch ends up being the attached plus the teensy change so that anaconda
will check /dev/mapper/live-osimg-min

Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osmin-in-initrd.patch
Type: text/x-patch
Size: 2362 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20070918/5e14284d/attachment.bin>


More information about the Fedora-livecd-list mailing list