Ubuntu added to BKO (with problems)
authorPravin Shinde <pravin@black-perl.(none)>
Fri, 26 Jun 2009 10:28:54 +0000 (12:28 +0200)
committerPravin Shinde <pravin@black-perl.(none)>
Fri, 26 Jun 2009 10:28:54 +0000 (12:28 +0200)
it boots, mounts httpfs, but fails because of some squashfs errors.

pxeknife/pxeknife.conf
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/casper
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/fusermount [new file with mode: 0755]
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/httpfs [new file with mode: 0755]
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc [new file with mode: 0755]
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc.sh [new file with mode: 0755]
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/initrd.gz_orig [new file with mode: 0644]
pxeknife/ubuntu/ubuntu-9.04-desktop-i386/vmlinuz [new file with mode: 0644]
pxeknife/ubuntu/ubuntu.conf

index 9c47699..23adcdc 100644 (file)
@@ -15,6 +15,11 @@ LABEL pxeknife-knoppix
        kernel menu.c32
        append pxeknife/knoppix/knoppix.conf
 
+LABEL pxeknife-ubuntu
+       MENU LABEL Ubuntu --->
+       kernel menu.c32
+       append pxeknife/ubuntu/ubuntu.conf
+
 LABEL pxeknife-hd
        MENU LABEL Harddrive Utils --->
        kernel menu.c32
index 4a99f8d..9158392 100644 (file)
@@ -224,7 +224,7 @@ do_httpfsmount() {
     # Mount the ISO.
     rc=1
 
-    echo "HTTP Boot: inserting network modules"
+    echo "HTTP Boot: inserting network modules" >> /status
 #    insmod /modules/crc32c.ko >/dev/null 2>&1  
     insmod /lib/modules/2.6.28-11-generic/kernel/drivers/net/8390.ko  
     insmod /lib/modules/2.6.28-11-generic/kernel/drivers/net/mii.ko   
@@ -242,21 +242,25 @@ do_httpfsmount() {
        ifconfig lo 127.0.0.1 up
        ifconfig eth0 up
        udhcpc -s /bin/udhcpc.sh  >/dev/null 2>&1 
-       echo "passed on path is ${HTTPFS}"
-       ISO_PATH="http://192.168.0.2/ubuntu-9.04-desktop-i386.iso"
-       echo "The location of ubuntu iso  is $ISO_PATH"
-       echo "mounting CDROM"
+       echo  "passed on path is ${HTTPFS}" >> status
+       ISO_PATH="${HTTPFS}"
+#      ISO_PATH="http://192.168.0.1/ubuntu-9.04-desktop-i386.iso"
+       echo "The location of ubuntu iso  is $ISO_PATH" >> status
+       echo "mounting CDROM" >> status
        mkdir /iso
        httpfs $ISO_PATH /iso
        FILEPATH=`ls /iso/*.iso`
+#      FILEPATH="/iso/ubuntu-9.04-desktop-i386.iso"
+       echo  "File path is $FILEPATH" >> status
+       losetup -r /dev/loop0 $FILEPATH
        busybox mount -t iso9660 $FILEPATH "${mountpoint}" -o loop -o ro
        
        
        # test if knoppix is there
-       if test -f /cdrom/casper
+       if test -d /cdrom/casper
        then
-               echo -n "successfully mounted the Image"
-               rc=0
+               echo "successfully mounted the Image" >> success
+               return 0
        fi
        return ${rc}
 
diff --git a/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/fusermount b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/fusermount
new file mode 100755 (executable)
index 0000000..c37325c
Binary files /dev/null and b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/fusermount differ
diff --git a/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/httpfs b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/httpfs
new file mode 100755 (executable)
index 0000000..df1b078
Binary files /dev/null and b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/server/httpfs differ
diff --git a/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc
new file mode 100755 (executable)
index 0000000..2d408a5
Binary files /dev/null and b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc differ
diff --git a/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc.sh b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/httpfs/static/udhcpc.sh
new file mode 100755 (executable)
index 0000000..9a8437a
--- /dev/null
@@ -0,0 +1,18 @@
+#!/static/sh
+
+case "$1" in
+       renew|bound)
+               ifconfig $interface $ip up
+
+               if [ -n "$router" ] ; then
+                       for i in $router ; do
+                               route add -net 0.0.0.0 netmask 0.0.0.0 gw $i dev $interface
+                       done
+               fi
+               ;;
+       * )
+               ifconfig $interface 0.0.0.0
+               ;;
+esac
+
+exit 0
diff --git a/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/initrd.gz_orig b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/initrd.gz_orig
new file mode 100644 (file)
index 0000000..2f5fb1d
Binary files /dev/null and b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/initrd.gz_orig differ
diff --git a/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/vmlinuz b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/vmlinuz
new file mode 100644 (file)
index 0000000..c868564
Binary files /dev/null and b/pxeknife/ubuntu/ubuntu-9.04-desktop-i386/vmlinuz differ
index 76b0d89..dd72061 100755 (executable)
@@ -8,7 +8,7 @@ LABEL rootmenu
 label ubuntu904desktopi386-laptop
        MENU LABEL Ubuntu 9.04 Desktop i386 - laptop
        kernel pxeknife/ubuntu/ubuntu-9.04-desktop-i386/vmlinuz
-       append  file=/cdrom/preseed/ubuntu.seed netboot=http boot=casper httpfs=http://192.168.0.2/ubuntu-9.04-desktop-i386.iso  initrd=pxeknife/ubuntu/ubuntu-9.04-desktop-i386/initrd.gz
+       append  file=/cdrom/preseed/ubuntu.seed netboot=http boot=casper httpfs=http://192.168.0.1/ubuntu-9.04-desktop-i386.iso  initrd=pxeknife/ubuntu/ubuntu-9.04-desktop-i386/initrd.gz
 
 
 label knoppix502-rom