home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ac-grenoble.fr
/
2015.02.ftp.ac-grenoble.fr.tar
/
ftp.ac-grenoble.fr
/
pub
/
slis
/
disk_boot
/
cvs
/
KS.CFG
< prev
next >
Wrap
Text File
|
2004-02-01
|
7KB
|
407 lines
# Kickstart SLIS 3.1
# $Id: KS.CFG,v 1.44 2004/02/02 14:59:51 bzizou Exp $ #
# You have to edit "keyboard" and "timezone" values to match your country
# You can also customize the password for grub ("bootloader" value)
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard fr
#System mouse
mouse none
#System timezone
timezone --utc Europe/Paris
#Use text mode install
text
#System bootloader configuration
bootloader --location=mbr --md5pass=$1$ΓKF°j¿Fs$TqRq0U2DfV8vddYf4tLBK1
#Root password
rootpw --iscrypted dummyrootpassword
#Install Red Hat Linux instead of upgrade
install
#Use CDROM installation media
cdrom
#Clear the Master Boot Record
zerombr yes
#Clear all partitions from the disk
clearpart --all --initlabel
#Disk partitioning information
# This configuration requires a 4Gb disk at mini
# You can make your own customization to decrease
# the www-cache size for example if you need to
# install SLIS on very little configs.
part swap --size 256
part / --fstype ext3 --size 1000 --grow --maxsize 2000
part /boot --fstype ext2 --size 30 --asprimary
part /tmp --fstype ext3 --size 100 --grow --maxsize 500
part /var --fstype ext3 --size 200 --grow --maxsize 3000
part /home --fstype ext3 --size 200 --grow
part /www-cache --fstype ext3 --size 2000
#System authorization information
auth --useshadow --enablemd5
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx
#Packages
%packages --resolvedeps
filesystem
shadow-utils
termcap
SysVinit
kbd
cracklib-dicts
dev
findutils
gd
hdparm
ipchains
iptables
libstdc++
compat-pwdb
coreutils
rpm
mount
minicom
mkinitrd
mt-st
ncftp
net-tools
ntsysv
patch
pidentd
ppp
procps
rdate
rootfiles
setuptool
tcp_wrappers
tftp
time
unzip
words
glibc
bind-utils
iputils
krb5-libs
ncurses
sysklogd
perl
mod_perl
mod_ssl
mod_auth_pgsql
imap
traceroute
vim-minimal
perl-libwww-perl
postgresql-server
openldap
wget
tmpwatch
mktemp
vsftpd
php
php-imap
php-pgsql
php-ldap
php-mysql
openssl
openssh-clients
at
net-snmp
zlib
rmt
setup
basesystem
libtermcap
MAKEDEV
grep
chkconfig
anacron
compat-db
authconfig
caching-nameserver
sed
e2fsprogs
cracklib
crontabs
dhcp
file
gawk
gdbm
glib
gzip
bzip2
initscripts
kudzu
less
libpng
grub
fedora-release
logrotate
lynx
mingetty
mkbootdisk
mtools
ncompress
newt
passwd
procmail
psmisc
quota
fedora-logos
setserial
tcpdump
tftp-server
redhat-config-date
util-linux
which
zip
tar
bash
ed
xinetd
mailx
modutils
popt
slocate
tcsh
bind
pam
samba-common
samba
samba-client
vim-common
vixie-cron
ntp
perl-DBI
postgresql
libjpeg
arpwatch
openldap-servers
sendmail
sendmail-cf
m4
man
diffutils
httpd
mysql
openssl
openssh
openssh-server
telnet
net-snmp-utils
rsync
expect
libpcap
openldap-clients
perl-DBD-Pg
readline41
squid
fetchmail
krb5-devel
openssl-devel
lsof
mrtg
beecrypt
tzdata
apr
apr-util
gcc
glibc-headers
libstdc++-devel
binutils
gcc-c++
glibc-kernheaders
cpp
glibc-devel
libstdc++
XFree86-libs
XFree86-Mesa-libGL
XFree86-libs-data
fontconfig
spamassassin
perl-Net-DNS
perl-Digest-HMAC
perl-Time-HiRes
perl-Digest-SHA1
aspell-en
compat-gcc
compat-gcc-c++
compat-libstdc++
compat-libstdc++-devel
e2fsprogs-devel
openssl096b
tcl
sudo
expect
mtr
#Postinstall
%post --nochroot
# 1st partiton activation
if [ "`/mnt/sysimage/sbin/fdisk -l /dev/hda|grep hda1|grep -v \*`" != "" ]
then
echo -e "a\n1\nw\n" | /mnt/sysimage/sbin/fdisk /dev/hda
fi
# Emptying root passwd
sed "s/dummyrootpassword//" /mnt/sysimage/etc/shadow > /tmp/shadow
cat /tmp/shadow > /mnt/sysimage/etc/shadow
# Grub comment modification
sed "s/Red Hat Linux/SLIS3 (RedHat)/" /mnt/sysimage/etc/grub.conf> /mnt/sysimage/tmp/grub.conf
mv -f /mnt/sysimage/tmp/grub.conf /mnt/sysimage/boot/grub/grub.conf
# SLIS installation script creation
echo "if [ -f /root/.first ] ; then /root/slis_setup ; fi" >> /mnt/sysimage/etc/profile
touch /mnt/sysimage/root/.first
cat << EOF > /mnt/sysimage/root/slis_setup
# slis_setup: The script that copies the setup files and starts the install
dmesg -n 1
mkdir -p /root/slis
echo "===== SLIS setup ====="
echo "In order to install a new SLIS, you need to have prepared "
echo "some setup files, also called 'DKS'."
echo "You can find the matrix of the DKS at the following URL:"
echo "ftp://ftp.ac-grenoble.fr/pub/slis/disk_setup/"
echo
NOFILE=1
while [ \$NOFILE = 1 ]
do
echo "Select the media where you stored the setup files:"
echo "(If it fails, you can run ./slis_setup to retry)"
echo " 1: Floppy (DKS)"
echo " 2: CDROM"
echo " 3: USB DiskOnKey"
echo " 4: Other"
echo -n "--> [1] "
read MEDIA
case \$MEDIA in
1|"")
echo
echo "Insert setup disk into drive A and press ENTER"
read BIDON
mcopy a:* /root/slis/
OK=1
;;
2)
echo
echo "Insert the CDROM containing the setup files and answer:"
echo "Where are the setup files on the CD?"
echo -n "--> [slis/disk_setup/] "
read DIR
if [ "\$DIR" = "" ]
then
DIR="slis/disk_setup/"
fi
mount /mnt/cdrom
cp /mnt/cdrom/\$DIR/* /root/slis/
umount /mnt/cdrom
OK=1
;;
3)
echo
echo "Insert your USB key and answer:"
echo "Where are the setup files on the key?"
echo -n "--> [slis/] "
read DIR
if [ "\$DIR" = "" ]
then
DIR="slis/"
fi
# Don't know why I must do that, it's a bug:
updfstab;updfstab
# end of the workaround
mount /mnt/diskonkey
cp /mnt/diskonkey/\$DIR/* /root/slis/
umount /mnt/diskonkey
;;
4)
echo
echo "What to mount?"
echo -n "--> [/mnt/ipod] "
read MOUNT
if [ "\$MOUNT" = "" ]
then
MOUNT="/mnt/ipod"
fi
mount \$MOUNT
echo "Where are the files?"
echo -n "--> [slis/] "
read DIR
if [ "\$DIR" = "" ]
then
DIR="slis/"
fi
cp \$MOUNT/\$DIR/* /root/slis/
umount \$MOUNT
;;
esac
# Test
if [ -f /root/slis/setup.data ]
then
NOFILE=0
else
echo "ERROR: setup.data file not found!"
fi
done
rm -f /root/.first
cd /root/slis
echo "Press ENTER to continue..."
read BIDON
bash ./setup
EOF
chmod 755 /mnt/sysimage/root/slis_setup
# Message of the day
echo "SLIS pre-installed `/mnt/sysimage/bin/date`" > /mnt/sysimage/etc/motd
# No network configuration by default
echo -e "DEVICE=eth1\nONBOOT=no\n" > /mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth1
echo -e "DEVICE=eth0\nONBOOT=no\n" > /mnt/sysimage/etc/sysconfig/network-scripts/ifcfg-eth0
# Workaround contre le bug du clavier des portables Toshiba
# Osolete as gpm is no more installed # /sbin/chkconfig --del gpm
# Nice splash screen for stage 2 installation
cp -f /mnt/source/slis/install/splash-stage2.xpm.gz /mnt/sysimage/boot/grub/splash.xpm.gz
# I'm paranoid...
sync