Hi Hob,
Thx for the reply.Here it is...And thanks again !
#!/bin/sh
#########################################################################
# This script genereates a KickStart configuration (ks.cfg) file for the
# installation of Fedora Core 2. It can be customized by changing values
# of environment variables.
#########################################################################
# NB.01: (EOF) needs to be quoted ('EOF') in order to work well.
#########################################################################
# NB.02: SUGGESTION: Manually inspect the "passwd" file: machines for
# specific groups may need adjustments...
#########################################################################
# NB.05: Add Fedora packages to be installed after line "ADD_PACKAGES"
########################### Disk Partitions #############################
# TODO: A configuration file to be read (optionnally), to ease reuse.
# if [ -n "$1" ] ; then . "$1" ; fi
#########################################################################
# Manager Account to allow login (even when not connected)
MGR_ACCOUNT=Me
MGR_EMAIL=Me@nowhere
MGR_PWD=Dtapg5BeX3FAg
MGR_UID=000000
MGR_GID=oooooo
#########################################################################
# check for and load configuration file
if [ "x$1" == "x" ]; then
echo you must specify a configuration file as argument
exit 1
fi
if [ ! -f "$1" ] ; then
echo the configuration file specified was not found
exit 1
fi
. "$1"
echo configuration: $SIGNATURE
# backup any existing "ks.cfg" file
if [ -e ks.cfg ]; then
mv -f ks.cfg ks.cfg.bak
fi
touch ks.cfg
echo "# CONFID=$SIGNATURE" >> ks.cfg
# Have the installation done in text mode:
echo "install" >> ks.cfg
echo "text" >> ks.cfg
# Have 'phase#2' start automatically after 'phase#1':
echo "reboot" >> ks.cfg
#########################################################################
# Just hit <CR> if you want to use the "standard" passwd (ref. Michel)
# For UNMANAGED, the name of the owner might be a good choice...
echo 'Enter root passwd (or hit <CR> to use MANAGED password):'
read ROOT_PASSWD
# Server to use (100.000. or 192.168, depending...)
echo "url --url
http://$URL_SERVER/$URL_DIR/i386/os" >> ks.cfg
if [ ! "$KEYBOARD" == "" ]; then
echo "keyboard $KEYBOARD" >> ks.cfg
fi
if [ ! "$MOUSE" == "" ]; then
echo "mouse $MOUSE" >> ks.cfg
fi
if [ ! "$VIDEO_CARD" == "" ]; then
VIDEO_CARD_ARG="--card $VIDEO_CARD"
fi
if [ ! "$VIDEO_RAM" == "" ]; then
VIDEO_RAM_ARG="--videoram $VIDEO_RAM"
fi
if [ ! "$VIDEO_HSYNC" == "" ]; then
VIDEO_HSYNC_ARG="--hsync $VIDEO_HSYNC"
fi
if [ ! "$VIDEO_VSYNC" == "" ]; then
VIDEO_VSYNC_ARG="--vsync $VIDEO_VSYNC"
fi
if [ ! "$VIDEO_RES" == "" ]; then
VIDEO_RES_ARG="--resolution $VIDEO_RES"
fi
if [ ! "$VIDEO_DEPTH" == "" ]; then
VIDEO_DEPTH_ARG="--depth $VIDEO_DEPTH"
fi
if [ "$STARTXONBOOT" == 1 ]; then
echo "xconfig $VIDEO_CARD_ARG $VIDEO_RAM_ARG $VIDEO_HSYNC_ARG $VIDEO_VSYNC_ARG $VIDEO_RES_ARG $VIDEO_DEPTH_ARG --startxonboot --defaultdesktop=$WMGR" >> ks.cfg
fi
if [ ! "$ROOT_PASSWD" == "" ]; then
echo Using new root passwd
ENCRYPTED_ROOT_PASSWD=`openssl passwd -1 $ROOT_PASSWD`
else
echo Using MANAGED root passwd
ENCRYPTED_ROOT_PASSWD='$1$SZNuK75w$qP5Pnj69UPUEgTwka2yqd/'
fi
echo "rootpw --iscrypted $ENCRYPTED_ROOT_PASSWD" >> ks.cfg
cat - << 'FROM_HERE_TO_THERE1' >> ks.cfg
lang en_US.UTF-8
langsupport --default en_CA.UTF-8 en_CA.UTF-8 en_US.UTF-8 fr_CA.UTF-8
network --device eth0 --bootproto dhcp
firewall --enabled
selinux --permissive
authconfig --enablenis --nisdomain info
timezone America/Montreal
FROM_HERE_TO_THERE1
if [ 1 == $DUAL_NETWORK_CARDS ]; then
echo "network --device eth1 --bootproto dhcp" >> ks.cfg
fi
# (UNMANAGED) DualBoot leaves other OS alone and uses default bootloader (GRUB)
if [ 1 == $DUAL_BOOT ]; then
echo "bootloader --location=mbr" >> ks.cfg
if [ 1 == $DUAL_DISK ]; then
echo "clearpart --linux --drives=$HDD,$HDD2" >> ks.cfg
else
echo "clearpart --linux --drives=$HDD" >> ks.cfg
fi
echo "part / --fstype ext3 --size=$DISK_ROOT_MIN --grow --ondisk=$HDD" >> ks.cfg
echo "part swap --size=$DISK_SWAP_MIN --grow --maxsize=$DISK_SWAP_MAX --ondisk=$HDD" >> ks.cfg
echo "part /boot --fstype ext3 --size=$DISK_BOOT --ondisk=$HDD" >> ks.cfg
else
# SingleBoot (Fedora)
# RAID-1 is "manually" formatted during Pre-Installation
if [ 1 == $RAID1 ]; then
# echo "bootloader --useLilo --location=mbr" >> ks.cfg
# echo "bootloader --useLilo --lba32 --location=mbr" >> ks.cfg
# LILO disappeared from Fedora Core 4...
echo "bootloader --lba32 --location=mbr" >> ks.cfg
echo "clearpart --all --drives=$HDD,$HDD2" >> ks.cfg
echo "part raid.1 --size=$DISK_BOOT --ondisk $HDD" >> ks.cfg
echo "part raid.2 --size=$DISK_SWAP_MAX --ondisk $HDD" >> ks.cfg
echo "part raid.3 --size=$DISK_ROOT_MIN --ondisk $HDD" >> ks.cfg
echo "part raid.4 --size=$DISK_H_MIN --grow --ondisk $HDD" >> ks.cfg
echo "part raid.5 --size=$DISK_BOOT --ondisk $HDD2" >> ks.cfg
echo "part raid.6 --size=$DISK_SWAP_MAX --ondisk $HDD2" >> ks.cfg
echo "part raid.7 --size=$DISK_ROOT_MIN --ondisk $HDD2" >> ks.cfg
echo "part raid.8 --size=$DISK_H_MIN --grow --ondisk $HDD2" >> ks.cfg
# echo "clearpart --none" >> ks.cfg
# echo "part raid.1 --noformat --onpart $HDD"1 >> ks.cfg
# echo "part raid.2 --noformat --onpart $HDD"2 >> ks.cfg
# echo "part raid.3 --noformat --onpart $HDD"3 >> ks.cfg
# echo "part raid.4 --noformat --onpart $HDD"4 >> ks.cfg
# echo "part raid.5 --noformat --onpart $HDD2"1 >> ks.cfg
# echo "part raid.6 --noformat --onpart $HDD2"2 >> ks.cfg
# echo "part raid.7 --noformat --onpart $HDD2"3 >> ks.cfg
# echo "part raid.8 --noformat --onpart $HDD2"4 >> ks.cfg
echo "raid swap --level=RAID1 --device=md1 raid.2 raid.6" >> ks.cfg
echo "raid / --level=RAID1 --device=md2 raid.3 raid.7" >> ks.cfg
echo "raid /boot --level=RAID1 --device=md0 raid.1 raid.5" >> ks.cfg
echo "raid /usr1 --level=RAID1 --device=md3 raid.4 raid.8" >> ks.cfg
# no RAID-1
else
# LILO disappeared from Fedora Core 4...
# echo "bootloader --useLilo --location=mbr" >> ks.cfg
echo "bootloader --location=mbr" >> ks.cfg
if [ 1 == $DUAL_DISK ]; then
echo "clearpart --all --drives=$HDD,$HDD2" >> ks.cfg
else
echo "clearpart --all --drives=$HDD" >> ks.cfg
fi
echo "part / --fstype ext3 --size=$DISK_ROOT_MIN --grow --ondisk=$HDD" >> ks.cfg
echo "part swap --size=$DISK_SWAP_MIN --grow --maxsize=$DISK_SWAP_MAX --ondisk=$HDD" >> ks.cfg
echo "part /boot --fstype ext3 --size=$DISK_BOOT --ondisk=$HDD" >> ks.cfg
fi
fi
# Make a dedicated partition for { /h , /home }
# 1) on second disk if it exists
# 2) if the machine is UNMANAGED
if [ 1 == $DUAL_DISK ]; then
if [ "x0" == "x$RAID1" ]; then
echo "part /$FHOME --fstype ext3 --size=$DISK_H_MIN --grow --ondisk=$HDD2" >> ks.cfg
fi
else
if [ 0 == $MANAGED ]; then
echo "part /$FHOME --fstype ext3 --size=$DISK_H_MIN --grow --maxsize=$DISK_H_MAX --ondisk=$HDD" >> ks.cfg
fi
fi
# Manually ADD_PACKAGES to be installed to the list below, like:
# ddd
# xorg-x11-X.........................And so fourth is go's...:0
MArtin