[Fedora-livecd-list] [PATCH 7/7] prepend iso fslabel to fstype.img syntax

Douglas McClendon dmc.fedora at filteredperception.org
Fri Sep 21 10:44:36 UTC 2007


This patch prepends the fslabel that the user gives to livecd-creator, 
to the filesystem image names on the livecd and liveusb.

This got a bit uglier than I had in mind at first, though possibly in a 
way that has a beneficial side effect-

Currently in the liveusb case, instead of a CDLABEL being passed on the 
kernel-commandline, a uuid is passed instead.  Thus as far as I could 
see (and maybe I'm just tired), at that point the cdlabel is lost to the 
liveusb.

What I did was have livecd-creator write out the fslabel to 
/etc/LiveOS-release.  And then I had mayflower read this when generating 
the initramfs init, so that it would know where to look for the file.

I think /etc/LiveOS-release would also solve a problem recently brought 
up by Andy (asmith11), as to how to determine in the %post of whether or 
not you are in a livecd environment or not.

Anyway, there may be better methods that just didn't occur to me, but 
this doesn't seem so bad to me.

food for thought, like the rest of these patches...

So, with all of these, the final cdrom filesystem layout, for the F7 
livecd, would have looked like...

/boot/isolinux/(stuff that used to be in /isolinux)
/LiveOS/Fedora-7-Live-i386.squashfs.img
/LiveOS/Fedora-7-Live-i386.osmin.img
(note, no /sysroot)

and inside the squashfs.img, is only /LiveOS/Fedora-7-Live-i386.ext3.img

Maybe there should be another patch to rename the .osmin.img to 
.mininst.img or something...

Again, I am not at all opposed to just shelving these for a few months, 
and seeing if people are more interested in them for F9.  But I like them...

-dmc



-------------- next part --------------
A non-text attachment was scrubbed...
Name: livecd.7.prepend_fslabel_to_osimage.patch
Type: text/x-patch
Size: 12144 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/livecd/attachments/20070921/d79e2d5d/attachment.bin 


More information about the livecd mailing list