Code Sample |
LABEL dsl-3.4RC1 KERNEL /dsl-3.4RC1/linux24 APPEND ramdisk_size=100000 init=/etc/init lang=us vga=791 initrd=/dsl-3.4RC1/minirt24.gz quiet BOOT_IMAGE=knoppix syslog dma usb2 host=keyhole tz=America/Chicago frominitrd base norestore noswap LABEL dsl-3.3 KERNEL /dsl-3.3/linux24 APPEND ramdisk_size=100000 init=/etc/init lang=us vga=791 initrd=/dsl-3.3/minirt24.gz quiet BOOT_IMAGE=knoppix syslog dma usb2 host=keyhole tz=America/Chicago frominitrd base norestore noswap LABEL dsl-1.5 KERNEL /dsl-1.5/linux24 APPEND ramdisk_size=100000 init=/etc/init lang=us vga=791 initrd=/dsl-1.5/minirt24.gz quiet BOOT_IMAGE=knoppix syslog dma usb2 host=keyhole tz=America/Chicago frominitrd base norestore noswap |
Code Sample |
--- linuxrc.orig 2007-06-26 19:07:56.000000000 -0500 +++ linuxrc-frominitrd 2007-06-26 19:04:00.000000000 -0500 @@ -334,6 +334,8 @@ 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 booted from initrd +case "$CMDLINE" in *frominitrd*) DEVICES="";;; esac for i in $DEVICES do echo -n "${CRE}${BLUE}Looking for CDROM in: ${MAGENTA}$i${NORMAL} " @@ -349,6 +351,16 @@ 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). |