I’m using the following script to kickstart a rhel5 workstation. When the machine comes up, the /etc/sysconfig/network-scripts/ifcfg-eth0 file has been moved to /etc/sysconfig/network-scripts/ifcfg-eth0.bak, and the new file specifies the bootproto as dhcp. Any ideas would be much appreciated.
Kickstart.cfg:
# Embed pxelinux.cfg file here #PXE default linux #PXE label linux #PXE kernel vmlinuz-REDHATEL5_x64 #PXE append ksdevice=link ip=<IP> netmask=<NM> gateway=<GW> dns=<DNS>1 load_ramdisk=1 initrd=initrd.img-REDHATEL5_x64 network ks=nfs:<SERVER>:/export/Corp01/install/kickstart/hosts/^HOSTNAME^
# Install Red Hat Linux install
# Installation Number key <IN>
# System Language lang en_US.UTF-8
# Language Modules to Install langsupport --default en_US en_US
# System Keyboard keyboard us
# System Mouse mouse --emulthree
# Skip XWindows configuration skipx
# Setup Networking network --device eth0 --bootproto static --ip ^IPADDR^ --netmask <NM> --gateway ^GATEWAY^ --nameserver <DNS> --hostname ^HOSTNAME^ --noipv6
# Set root password rootpw --iscrypted <PW>
# Disable Firewall firewall --disabled
# Disable SELinux selinux --disabled
# Enable Security Features authconfig --enableshadow --enablemd5
# Set timezone timezone --utc America/Chicago
# Create a Bootloader bootloader --location=mbr --driveorder=sda --append="rhgb quiet" --md5pass=<PW>
# Reboot after install reboot
# Use text mode to install text
# Use NFS installation media nfs --server <SERVER> --dir /export/Corp01/install/kickstart/REDHATEL5_Desktop_x64
# Clear the MBR zerombr
# Clear all partitions clearpart --linux --drives=sda
# Create Partitions part / --fstype ext3 --size=8192 part swap --size=1024 part /var --fstype ext3 --size=100 --grow
%packages @admin-tools @base @core @development-libs @development-tools @editors @legacy-software-development @printing tcl.i386 kernel-devel nautilus-open-terminal xinetd -kdenetwork -NetworkManager -kdenetwork-devel -dhclient -NetworkManager-gnome -dhcdbd
%post ####################################################################### # Setup Variables ####################################################################### DOMAIN=^DOMAIN^ HOSTNAME=^HOSTNAME^ IPADDR=^IPADDR^ GATEWAY=^GATEWAY^
KICKSTART_SERVER=<SERVER> KICKSTART_DIR=/export/Corp01/install/kickstart CFENGINE_SERVER=<SERVER> CFENGINE_MNT_DIR=/spool/cfengine CFENGINE_INST_DIR=/export/JS/cfengine/local LOG_DIR=/var/log/kickstart LOG_FILE=${LOG_DIR}/kickstart_install.log KICK_DIR=/mnt SCRIPTS_DIR=${KICK_DIR}/scripts FILES_DIR=${KICK_DIR}/files export DOMAIN HOSTNAME IPADDR GATEWAY KICKSTART_SERVER CFENGINE_SERVER CFENGINE_MNT_DIR CFENGINE_INST_DIR LOG_DIR LOG_FILE KICK_DIR SCRIPTS_DIR FILES_DIR ########################################################################
mkdir ${LOG_DIR}
# Mount up the kickstart server ######################################################################## echo "Mounting ${KICKSTART_SERVER}:${KICKSTART_DIR} -> ${KICK_DIR}" >> ${LOG_FILE} mount -o ro,nolock ${KICKSTART_SERVER}:${KICKSTART_DIR} ${KICK_DIR} >> ${LOG_FILE} 2>&1 ########################################################################
######################################################################## # Select which services you want on/off at boot ######################################################################## chkconfig sendmail off chkconfig iptables off chkconfig ntpd on chkconfig autofs on chkconfig cups on chkconfig telnet off chkconfig rlogin on chkconfig rsh on chkconfig rexec on chkconfig rsync on chkconfig snmpd off chkconfig snmptrapd off chkconfig yumupdatesd off ########################################################################
######################################################################## # Select which options you want setup ######################################################################## ${SCRIPTS_DIR}/Network_setup.sh ${SCRIPTS_DIR}/NTP_setup.sh ${SCRIPTS_DIR}/CFengine_install.sh ${SCRIPTS_DIR}/NIS_setup.sh ${SCRIPTS_DIR}/xorg_install.sh ${SCRIPTS_DIR}/Autofs_setup.sh ########################################################################
echo "unmounting ${KICK_DIR}" >> ${LOG_FILE} umount ${KICK_DIR} >> ${LOG_FILE} 2>&1 |
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list