Code Sample |
host tablet { hardware ethernet ************; //MAC address of pxe booting computer fixed-address 192.168.1.34; //ip of pxe booting computer option host-name "tablet"; filename "pxelinux.0"; //file should be in the tftp root dir next-server 192.168.1.2; //this can be the same as the dhcp server } |
Code Sample |
gunzip minirt24.gz mkdir /mnt/initrd-dsl mount -o loop ./minirt24 /mnt/initrd-dsl |
Code Sample |
touch initrd dd if=/dev/zero of=./initrd bs=1M count=53 mke2fs ./initrd mkdir /mnt/initrd-custom mount -o loop ./initrd /mnt/initrd-custom |
Code Sample |
cp -a /mnt/initrd-dsl/* /mnt/initrd-custom/ |
Code Sample |
mkdir /mnt/initrd-custom/cdrom/KNOPPIX cp /path-to-KNOPPIX-file /mnt/initrd-custom/cdrom/KNOPPIX/ |
Quote |
*** linuxrc.orig 2005-09-16 13:46:47.000000000 +0000 --- linuxrc 2005-09-16 13:46:33.000000000 +0000 *************** *** 323,328 **** --- 323,330 ---- test -n "$FOUND_SCSI" -a -z "$NOSCSI" && DEVICES="$DEVICES /dev/sd?[1-9] /dev/sd?[1-9][0-9]" DEVICES="$DEVICES /dev/hd?[1-9] /dev/hd?[1-9][0-9]" case "$CMDLINE" in *fromhd=/dev/*) DEVICES="$fromhd"; ;; esac + # Unset all devices if bootet from initrd + case "$CMDLINE" in *frominitrd*) DEVICES=""; ;; esac for i in $DEVICES do echo -n "${CRE}${BLUE}Looking for CDROM in: ${MAGENTA}$i${NORMAL} " *************** *** 338,343 **** --- 340,355 ---- fi done + # Look for KNOPPIX directory without mounting anything + case "$CMDLINE" in *frominitrd*) + if test -f /cdrom/$KNOPPIX_DIR/$KNOPPIX_NAME + then + echo -n "${CRE} ${GREEN}Accessing DSL image at ${MAGENTA}/cdrom/${KNOPPIX_DIR}/${KNOPPIX_NAME}${GREEN} on initrd...${NORMAL}" ; + FOUND_KNOPPIX="initrd" ; + fi + ;; + esac + # Harddisk-installed script part version has been removed # (KNOPPIX can be booted directly from HD now). |
Code Sample |
umount /mnt/initrd-custom /mnt/initrd-dsl |
Code Sample |
mv initrd minirt24 gzip minirt24 |
Code Sample |
cp ./minirt24.gz /tftpboot |
Quote |
DEFAULT linux24 APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=789 initrd=minirt24.gz nomce noapic quiet BOOT_IMAGE=knoppix frominitrd nopcmcia noagp noswap base TIMEOUT 300 PROMPT 0 |