These patches provide the infrastructure to support nicely booting off of a live USB stick. The pieces are to include vfat modules on the disk and to allow having the live image under a live subdirectory.
Jeremy
--- creator/livecd-creator | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/creator/livecd-creator b/creator/livecd-creator index 5231a84..fa6a6e0 100755 --- a/creator/livecd-creator +++ b/creator/livecd-creator @@ -580,7 +580,7 @@ class InstallationTarget: "%s/install_root/sbin/mayflower" %(self.build_dir,)) # modules needed for booting (this is butt ugly and we need to retrieve this from elsewhere, e.g. the kernel) mayflowerconf = open(self.build_dir + "/install_root/etc/mayflower.conf", "w") - mayflowerconf.write('MODULES+="cdrom ide-cd ahci loop dm_snapshot squashfs ext3 ehci_hcd uhci_hcd ohci_hcd usb_storage sd_mod sr_mod usbhid ata_piix "\n') + mayflowerconf.write('MODULES+="cdrom ide-cd ahci loop dm_snapshot squashfs ext3 ehci_hcd uhci_hcd ohci_hcd usb_storage sd_mod sr_mod usbhid ata_piix vfat msdos "\n') mayflowerconf.write('MODULES+="sata_mv sata_qstor sata_sis sata_uli "\n') mayflowerconf.write('MODULES+="sata_nv sata_sil24 sata_svw sata_via "\n') mayflowerconf.write('MODULES+="sata_promise sata_sil sata_sx4 sata_vsc "\n')
--- creator/mayflower | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/creator/mayflower b/creator/mayflower index 8136282..39362f2 100755 --- a/creator/mayflower +++ b/creator/mayflower @@ -576,7 +576,13 @@ do_livecd_from_loop121() {
# we might have an uncompressed embedded ext3 to use as rootfs (uncompressed livecd) # -if [ -e /sysroot/ext3fs.img ] ; then +if [ -e /sysroot/live/ext3fs.img ]; then + EXT3FS="/sysroot/live/ext3fs.img" +elif [ -e /sysroot/ext3fs.img ] ; then + EXT3FS="/sysroot/ext3fs.img" +fi + +if [ -n "$EXT3FS" ] ; then if [ "$quiet" != "1" ] ; then echo "setting up embedded ext3 fs " fi @@ -590,7 +596,7 @@ if [ -e /sysroot/ext3fs.img ] ; then modprobe loop max_loop=128 modprobe dm_snapshot
- losetup /dev/loop121 /sysroot/ext3fs.img + losetup /dev/loop121 $EXT3FS umount -l /sysroot
do_livecd_from_loop121 @@ -598,7 +604,13 @@ fi
# we might have an embedded ext3 on squashfs to use as rootfs (compressed livecd) # -if [ -e /sysroot/squashfs.img ] ; then +if [ -e /sysroot/live/squashfs.img ]; then + SQUASHED="/sysroot/live/squashfs.img" +elif [ -e /sysroot/squashfs.img ]; then + SQUASHED="/sysroot/squashfs.img" +fi + +if [ -n "$SQUASHED" ] ; then
if [ "$quiet" != "1" ] ; then echo "setting up embedded squash -> ext3 fs " @@ -624,7 +636,7 @@ if [ -e /sysroot/squashfs.img ] ; then mount -n -t iso9660 /dev/loop118 /sysroot fi
- losetup /dev/loop120 /sysroot/squashfs.img + losetup /dev/loop120 $SQUASHED mkdir -p /squashfs mount -n -t squashfs -o ro /dev/loop120 /squashfs
On Mon, 2007-03-26 at 16:26 -0400, Jeremy Katz wrote:
These patches provide the infrastructure to support nicely booting off of a live USB stick. The pieces are to include vfat modules on the disk and to allow having the live image under a live subdirectory.
Both patches look good to me, only one nitpick: I don't like the directory name 'live', it's too generic and doesn't really make the owner of the USB stick realize what's going on. I think this may be important in settings where Fedora USB sticks are handed out on conferences; 1GB sticks are about $10 a piece these days...
Being the pedant that I am, I also would prefer if it was capitalized. Perhaps call it LiveOS (we can't really call it Fedora) and include a README file in that sub directory that explains to the user that this USB stick is bootable including what kind of computers it can boot on. For example, the README file could mention some FAQ's about older computers that can't boot off USB. Perhaps call it README.txt to make lives easier on Windows users?
Apart from that, this is totally awesome. Good job!
David
On Mon, 2007-03-26 at 17:19 -0400, David Zeuthen wrote:
On Mon, 2007-03-26 at 16:26 -0400, Jeremy Katz wrote:
These patches provide the infrastructure to support nicely booting off of a live USB stick. The pieces are to include vfat modules on the disk and to allow having the live image under a live subdirectory.
Both patches look good to me, only one nitpick: I don't like the directory name 'live', it's too generic and doesn't really make the owner of the USB stick realize what's going on. I think this may be important in settings where Fedora USB sticks are handed out on conferences; 1GB sticks are about $10 a piece these days...
Yeah, I had this thought also...
Being the pedant that I am, I also would prefer if it was capitalized. Perhaps call it LiveOS (we can't really call it Fedora) and include a README file in that sub directory that explains to the user that this USB stick is bootable including what kind of computers it can boot on. For example, the README file could mention some FAQ's about older computers that can't boot off USB. Perhaps call it README.txt to make lives easier on Windows users?
LiveOS is far better; good call. A README also sounds like a good idea. Anyone want to volunteer to write one? :-)
Jeremy
Would it be possible to call it FedoraLive or FedoraLiveOS ... so someone could figure out which Linux LiveUSB image it is?
Tim Wood 719.338.7484 (tel) 719.325.7032 (fax)
The Data Wranglers Web, Database & more since since 1994 www.datawranglers.com
On Mar 26, 2007, at 3:20 PM, Jeremy Katz wrote:
LiveOS is far better; good call. A README also sounds like a good idea. Anyone want to volunteer to write one? :-)
On Mon, 2007-03-26 at 15:36 -0600, Tim Wood wrote:
Would it be possible to call it FedoraLive or FedoraLiveOS ... so someone could figure out which Linux LiveUSB image it is?
The problem is that the toolset is generic and we really don't want Fedora-isms to creep in as much as we can. It also helps avoid the confusion/problems with whether or not the trademark can be used
Jeremy
What about making the directory name an optional parameter (e.g. -d FedoraLive) ?
Tim Wood 719.338.7484 (tel) 719.325.7032 (fax)
The Data Wranglers Web, Database & more since since 1994 www.datawranglers.com
On Mar 26, 2007, at 3:50 PM, Jeremy Katz wrote:
The problem is that the toolset is generic and we really don't want Fedora-isms to creep in as much as we can. It also helps avoid the confusion/problems with whether or not the trademark can be used
Jeremy
On Mon, 2007-03-26 at 15:56 -0600, Tim Wood wrote:
On Mar 26, 2007, at 3:50 PM, Jeremy Katz wrote:
The problem is that the toolset is generic and we really don't want Fedora-isms to creep in as much as we can. It also helps avoid the confusion/problems with whether or not the trademark can be used
What about making the directory name an optional parameter (e.g. -d FedoraLive) ?
It could be done, but you're still not going to gain that much. You still can only really have one live OS per key and at that point, you're going to be better off having a useful README that gets dropped in instead of depending on directory names to try to tell you something
Jeremy
Although the charm of having a 4 or 8G thumb drive with several nifty live cds and grub multi-boot has its appeal (especially on that overly geeky looky what I've got way), my real concern is finding something like this a month later and trying to figure out _what_ is that stuff on there. LiveOS? With my memory, I can imagine googling for LiveOS to figure out what it is.
A readme would address my concern very nicely.
Tim Wood
On Mar 26, 2007, at 4:03 PM, Jeremy Katz wrote:
It could be done, but you're still not going to gain that much. You still can only really have one live OS per key and at that point, you're going to be better off having a useful README that gets dropped in instead of depending on directory names to try to tell you something
Jeremy
livecd@lists.fedoraproject.org