[Fedora-livecd-list] Net Boot

Cain, Brian (GE Healthcare) Brian.Cain at ge.com
Fri May 11 17:45:34 UTC 2007


> -----Original Message-----
> From: fedora-livecd-list-bounces at redhat.com 
> [mailto:fedora-livecd-list-bounces at redhat.com] On Behalf Of 
> Aaron Hanson
> Sent: Friday, May 11, 2007 12:32 PM
> To: fedora-livecd-list at redhat.com
> Subject: [Fedora-livecd-list] Net Boot
> 
> Hi All -
>  
>     I didn't get any responses on my question earlier in the 
> week, so I
> just forged ahead. I'm trying to get a net-boot of the complete livecd
> image. I've been merging the isolinux/initrd.img with the entire
> squashfs os.image and sending it to the target device with 'pxelinux'.
>  
>     The kernel loads, and the initrd is dutifully transferred, but I
> think I'm building the initrd wrong, because the kernel can't 
> figure it
> out (see below). Does anybody have some tips on the correct way to
> construct the initrd? Thanks...

I would try mounting the squashfs image via NFS or tftp.  You can hack
up the livecd-creator to offer you a boot option that includes a "root="
arg.  In fact, I would think it might be easier to mount an
(uncompressed, simple) NFS root than an image file.  Maybe you could
manually unpack the squashfs image to somewhere you're exporting.

This is by no means something that works, but it might help you get the
ball rolling (patched livecd-tools-008-1, iirc):

--- /usr/bin/livecd-creator     2007-05-07 16:07:33.000000000 -0500
+++ nfs-livecd-creator  2007-05-11 12:42:17.068968000 -0500
@@ -858,6 +858,12 @@
 """ %{"label": self.fs_label, "background" : have_background,
       "short": short, "long": long, "extra": extra}

+        cfg += '''label nfs
+    menu label NFS boot
+    kernel vmlinuz
+    append initrd=initrd.img root=/dev/nfs rw
nfsroot=12.345.67.89:/path/on/server/to/nfs_root ip=dhcp console=ttyS1
+'''
+
         cfgf = open("%s/out/isolinux/isolinux.cfg" %(self.build_dir,),
"w")
         cfgf.write(cfg)
         cfgf.close()



-Brian




More information about the Fedora-livecd-list mailing list