Help with Kickstart and Redhat 7.0: Got stuck in the prompt

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

 



Greetings,

I'm having problems to create a Kickstart disk; After
the instalation starts a Prompt apperars asking me for
the Languaje, Keyboard and othr settings as i never
putted in the ks.cfg file!.

Here are the steps i'm following to install Redhat 7.0
using kickstart:

1) I created the boonet disk using dd under linux:
dd if=bootnet.img of=/dev/fd0 bs=1440k

2) Then i copied my ks.cfg file to the disk:
mount /mnt/floppy
cp ks.cfg /mnt/floppy/
ls /mnt/floppy/
boot.msg    general.msg  ks.cfg       param.msg  
snake.msg     template.img
expert.msg  initrd.img   ldlinux.sys  rescue.msg 
syslinux.cfg  vmlinuz


3) I ran the installation, typed on the boot prompt:
linux ks=floppy and then i got the Languaje dialog.

I tested my NFS server and in other of the virtual
consoles i saw a message saying than the instalation
was able to mount the distribution.

Any ideas?

Thanks in advance.

Here is my kickstart file:

lang en_US
network --bootproto static --ip 10.1.20.103 --netmask
255.255.255.0 --gateway 10.1.20.1 --nameserver
10.1.20.200 --hostname linux0103
nfs --server 10.1.20.200 --dir
/export/linux/redhatlinux_i386_7.0
keyboard us
zerombr yes
clearpart --all
part /boot --size 20
part / --size 700 --grow
part swap --size 256
part /var --size 300 
install
mouse genericps/2
timezone --utc US/Eastern
skipx on
rootpw --iscrypted XaozfUK1CMopA
auth --useshadow --enablemd5
lilo --location mbr
lilo --append 'console=tty0 console=ttyS0,9600'
reboot


%packages
@ Base
@ Server
@ Kernel Development
@ GNOME
@ KDE
@ X Window System
@ Network Management Workstation
@ Development
@ Kernel Development


%post
mkdir /nfs
mount 10.1.20.200:/export/linux/ /nfs
ln -s /bin/gawk /usr/bin/nawk
ln -s /etc/rc.d/init.d /etc/init.d
cp /nfs/custom-monitor/hosts.allow /etc/hosts.allow
cp /nfs/custom-monitor/hosts.deny /etc/hosts.deny
echo '#Set login time out for the root account.'
echo 'export TMOUT=7200' >> /etc/profile
echo '# Limit the size of the history files' >>
/etc/profile
echo 'HISTFILESIZE=20' >> /etc/profile
echo 'HISTSIZE=20' >> /etc/profile
echo 'Recommended optimization flags For CPU i686 or
PentiumPro, Pentium II, Pentium III' >> /etc/profile
echo 'export CFLAGS=-O9 -funroll-loops -ffast-math
-malign-double -mcpu=pentiumpro -march=pentiumpro
-fomit-frame-pointer -fno-exceptions' >> /etc/profile
echo 'rm -f  $HOME/.bash_history' >>
/etc/skel/.bash_logout
echo '#Linux Kernel tunnable parameters -
josevnz@xxxxxxxxx - 11/20/2001'  >> /etc/sysctl.conf
echo
'#http://www.linuxdoc.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3'
 >> /etc/sysctl.conf
echo 'net.ipv4.tcp_syncookies = 1' >> /etc/sysctl.conf
echo '# Disables IP source routing' >>
/etc/sysctl.conf
echo 'net.ipv4.conf.all.accept_source_route = 0' >>
/etc/sysctl.conf
echo '# Disable ICMP Redirect Acceptance' >>
/etc/sysctl.conf
echo 'net.ipv4.conf.all.accept_redirects = 0' >>
/etc/sysctl.conf
echo '# Enable bad error message Protection' >>
/etc/sysctl.conf
echo 'net.ipv4.icmp_ignore_bogus_error_responses = 1'
>> /etc/sysctl.conf
echo '# Enable IP spoofing protection, turn on Source
Address Verification' >> /etc/sysctl.conf
echo 'net.ipv4.conf.all.rp_filter = 1' >>
/etc/sysctl.conf
echo '# Log Spoofed Packets, Source Routed Packets,
Redirect Packets' >> /etc/sysctl.conf
echo 'net.ipv4.conf.all.log_martians = 1' >>
/etc/sysctl.conf
userdel adm
userdel lp
userdel sync
userdel shutdown
userdel halt
userdel news
userdel uucp
userdel operator
userdel gopher
userdel ftp
groupdel adm
groupdel lp
groupdel news
groupdel uucp
groupdel pppusers
groupdel popusers
groupdel slipusers
chattr +i /etc/services
cp /nfs/custom-monitor/nsswitch.conf
/etc/nsswitch.conf
cp /nfs/custom-common/resolv.conf /etc/resolv.conf
cp /nfs/custom-common/host.conf /etc/host.conf
/bin/echo "10.1.20.103 	linux0103.dev.xxx.bogus
linux0103" >> /etc/hosts
cat /nfs/custom-common/passwd >> /etc/passwd
cat /nfs/custom-common/shadow >> /etc/shadow
mkdir -p /export/home/access
cp -rp /etc/skel/  /export/home/access
chown access:users /export/home/access
rpm -Uvh /nfs/custom-common/*.rpm
rpm -Uvh /nfs/custom-monitor/*.rpm
/sbin/chkconfig --del sendmail
/sbin/chkconfig --del sound
/sbin/chkconfig --del gpm
/sbin/chkconfig --del identd
/sbin/chkconfig --level 35 snmpd on
/sbin/chkconfig --level 35 ntpd on
if ! grep -q "ttyS0" /etc/inittab; then
  echo "s0:2345:respawn:/sbin/getty ttyS0 DT9600" >>
/etc/inittab
fi
if ! grep -q "ttyS0" /etc/securetty; then
  echo 'ttyS0' >> /etc/securetty
fi
if ! grep -q "serial=0,9600n8" /etc/lilo.conf; then
  perl -pi
-e's+^default=linux+default=linux\nserial=0,9600n8+'
/etc/lilo.conf
  /sbin/lilo
fi
echo "Setting Clock"
/usr/sbin/ntpdate 10.1.20.200
/sbin/hwclock --systohc
cp /nfs-custom-common/ntp.conf /etc/ntp.conf
cp /nfs-custom-common/step-tickers
/etc/ntp/step-tickers
/nfs-custom-common/snmpd.conf /etc/snmp/snmpd.conf
echo '# Improve file system performance' >>
/etc/sysctl.conf
echo 'vm.bdflush = 100 1200 128 512 15 5000 500 1884
2'  >> /etc/sysctl.conf
echo '# Improve virtual memory performance' >>
/etc/sysctl.conf
echo 'vm.buffermem = 70 10 60' >> /etc/sysctl.conf
echo '# Improve the number of open files' >>
/etc/sysctl.conf
echo 'fs.file-max = 8192' >> /etc/sysctl.conf
echo 'Safely set the limit of processes for the
super-user root to be unlimited' >> /root/.bashrc
echo 'ulimit -u unlimited' >> /root/.bashrc
echo '# Decrease the time default value for
tcp_fin_timeout connection' >> /etc/sysctl.conf
echo 'net.ipv4.tcp_fin_timeout = 30'  >>
/etc/sysctl.conf
echo '# Decrease the time default value for
tcp_keepalive_time connection' >> /etc/sysctl.conf
echo 'net.ipv4.tcp_keepalive_time = 1800' >>
/etc/sysctl.conf
echo '# If the kernel got panic the try to reboot the
box' >> /etc/sysctl.conf
echo 'kernel.panic = 30' >> /etc/sysctl.conf
echo '# Increasing the amount of memory associated
with socket buffers (needed for the NFS server)' >>
/etc/sysctl.conf
echo 'net.core.wmem_max=8388608' >> /etc/sysctl.conf
echo 'net.core.rmem_max=262143' >> /etc/sysctl.conf
echo 'net.core.wmem_default=65536' >> /etc/sysctl.conf
echo 'net.core.rmem_default=262143' >>
/etc/sysctl.conf
echo "Activating kernel optimizations"
/sbin/sysctl -p /etc/sysctl.conf







=====
System Engineer, José Vicente Nuñez Zuleta (josevnz@xxxxxxxxx)
Newbreak System Administrator (http://www.newbreak.com)
Java 2 Certified Programmer
Java 2 Certified Developer
------------------------------------------------------------
Do you know "JavaVen"?, 
http://groups.yahoo.com/group/JavaVen

_________________________________________________________
Do You Yahoo!?
¿Quieres armar tu própia página Web pero no sabes HTML?
Usa los asistentes de edición de Yahoo! Geocities
y tendrás un sitio en sólo unos minutos.
Visítanos en http://espanol.geocities.yahoo.com





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux