Got the srv_ip parameter working.
authorPravin Shinde <pravin@black-perl.(none)>
Tue, 16 Jun 2009 06:32:39 +0000 (08:32 +0200)
committerPravin Shinde <pravin@black-perl.(none)>
Tue, 16 Jun 2009 06:32:39 +0000 (08:32 +0200)
Currently, this parameter points the KNOPPIX image location.

pxeDHCP.gpxe [new file with mode: 0644]
pxeknife/dsl/dsl.conf
pxeknife/dsl/linuxrc

diff --git a/pxeDHCP.gpxe b/pxeDHCP.gpxe
new file mode 100644 (file)
index 0000000..da40443
--- /dev/null
@@ -0,0 +1,15 @@
+#!gpxe
+echo "Hi, We will be using PXEKnife from URL http://localhost/pxeknife"
+echo "It is assumed that you have dhcp networking"
+imgstat
+ifopen net0
+echo "Hit Control+C to cancel DHCP"
+echo "You may want to do this if you want to use static-IP"
+echo "Otherwise, it will try DHCP, and then anyway go to static-IP"
+sleep 4
+dhcp net0
+set 209:string pxelinux.cfg/default
+set 210:string http://192.168.0.2/pxeknife/
+echo "Here we go"
+chain http://192.168.0.2/pxeknife/pxelinux.0
+echo "PxeKnife booting cancelled, using local disk instead.."
index d9e24ed..165d005 100644 (file)
@@ -3,7 +3,12 @@ MENU TITLE --== PXE Knife - Damm Small Linux ==--
 
 LABEL dsl-http
        MENU LABEL DSL
-       KERNEL pxeknife/dsl/linux24 srv_ip=140.211.167.171
+       # for my local machine
+       KERNEL pxeknife/dsl/linux24 srv_ip=http://192.168.0.2/KNOPPIX
+       # for rom.etherboot.org
+#      KERNEL pxeknife/dsl/linux24 srv_ip=http://140.211.167.171/share/pravin/KNOPPIX
+       # for alien
+#      KERNEL pxeknife/dsl/linux24 srv_ip=http://145.116.233.189/KNOPPIX
        APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=pxeknife/dsl/minirt24.gz nomce noapic quiet BOOT_IMAGE=knoppix
 
 
index 739fb54..f75ab5c 100755 (executable)
@@ -355,17 +355,12 @@ ifconfig eth0 up
 udhcpc -s /static/udhcpc.sh  >/dev/null 2>&1 
 insmod /modules/fuse.o >/dev/null 2>&1 
 
-echo "server IP address is $SRV_IP"
-echo "testing networking"
-mkdir /ntest
-httpfs http://$SRV_IP/share/pravin/reach /ntest
-echo "checking content"
-cat /ntest/reach
+echo "The location of dsl.iso is $SRV_IP"
 
 
 echo "mounting KNOPPIX"
 mkdir /cdrom/KNOPPIX
-httpfs http://$SRV_IP/share/pravin/KNOPPIX /cdrom/KNOPPIX
+httpfs $SRV_IP /cdrom/KNOPPIX
 if test -f /cdrom/$KNOPPIX_DIR/$KNOPPIX_NAME
 then
 echo -n "${CRE} ${GREEN}Accessing DSL image at ${MAGENTA}HTTPFS{GREEN}...${NORMAL}"