[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] Knoppix and netinstall?



> The clients, thank goodness, can do PXE on their own.
> I'll go and have a look.
> If I want to have automatic installs, probably I will have to have a
> closer look at FAI that I managed to have by now - or is there another
> trick available?

We successfully tested fully automatic installs ...

However it is kind of dangerous ... Think of booting the wrong machine ?!

ok,

here is a small TODO, you'll need space on the HD:

And don't be disappointed: This will not allow to have a database with certain 
profiles and so on, but just think that every computer is the same.

- Start with knoppix tohd=/dev/hdaX (A partition with at least 800 MB free and 
using the ext2 (ext3 works also when cleanly unmounted) or vfat filesystem)

- Start Terminalserver as usual ...

- Create the directory /cdrom/KNOPPIX/unattended with all necessary files:

.knofig - knoppix configuration, once done, used for all
sfdisk.sct - Once done partition table saved with sfdisk -d /dev/hda > 
sfdisk.sct
ni.patch - The non-interactive patch, which allows unattended installation 
with params: --non-interactive

The last one can be found on:

http://debian.tu-bs.de/knoppix/installer/full-automatic-be-careful/ni.patch

- Create the file /cdrom/KNOPPIX/knoppix.sh (Don't rerun knoppix-autoconfig at 
that point, as it will try the unattended installation on the master-server):

#!/bin/bash
echo " Knoppix unattended installation. Press a key within 5 seconds to 
abort ..."
read -n1 -t5
if [ $? -eq 1 ]
then
  mkdir /ramdisk/unattended/
  cp /cdrom/KNOPPIX/unattended/.knofig /
  cp /usr/sbin/knoppix-installer /ramdisk/unattended/knoppix-installer
  sfdisk /dev/hda</cdrom/KNOPPIX/unattended/sfdisk.sct
  # Change this to whereever the swap partition is
  mkswap /dev/hda1
  swapon -a
  patch -p0 /ramdisk/unattended/knoppix-installer 
< /cdrom/KNOPPIX/unattended/ni.patch
  /ramdisk/unattended/knoppix-installer --non-interactive
fi

Credits for the Idea go to repcom.

The above is untested (don't have the time at the moment) and might do or not 
do ...

Have fun!

cu

Fabian

_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: