rja
Group: Members
Posts: 46
Joined: Jan. 2005 |
|
Posted: June 27 2007,00:23 |
|
Here is the diff from the linuxrc for dsl-3.3 to allow frominitrd:
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).
|
|