DSL Tips and Tricks :: How-to: PXE - Packing the KNOPPIX image in initrd



I tried to add the package nxclient as described above. After booting the following message shows up:

"Checking for myDSL Apps ....
nxclientgzip: short read
Done"

After that message X starts.

But there is no icon for the nxclient software.
"find / -name nx*" also only shows the nx....gz archive file and no installed nx client software.

Any ideas?

Rigas

Just a little update half a year later:

To got mydsl applications running, I had to do the following:

I created a larger (100 MB instead of 50 MB) minirt24.gz and copied the mydsl archive files on the highest level there ( / ).

After starting DSL, the appletes did not start by themselves ...
So I just wrote l little script with a line like

mydsl-load jre1_5_0.tar.gz

So this script installs the jre mydsl package ...

User DSL must be owner of the script, group must be staff ...

So I can run DSL on every computer in the house that is connected to the network .. I neither do need a usb-stick nor a CD any more .... pretty cool.


Rigas

Does anyone know if this works for 3.3?

I am getting the 'Can't find KNOPPIX filesystem...' message.  I believe my linuxrc file is properly changed...it goes through all the hardware detection fine.

Thanks in advance.
Screwba

I have setup both 3.3 and 3.4rc1 to pxe boot using these instructions.  I didn't try adding any extra packages.

It does sound like you need to re-check the linuxrc that needed
to be modified.

I'll try to make a diff of what I did to my  linuxrc for 3.3.

Also, make sure that you have frominitrd in your pxelinux.cfg/default or whatever config file you setup.  I have this:



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


This uses separate directories in /tftpboot for each version.

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).

Next Page...
original here.