When I use my kickstart file (which works on 5.1 x86_64) with 5.2 I get
the following error.
I put my kickstart file at the end.
Do I have something incomaptible in the file?
jerry
--------------------------------------
Traceback (most recent call first):
File "/usr/lib/anaconda/network.py", line 341, in lookupHostname
ret = isys.pumpNetDevice(dev.get('device'), dev.get('dhcpclass'))
File "/usr/lib/anaconda/network.py", line 531, in write
ip = self.lookupHostname()
File "/tmp/treedir.1828/instimage/usr/lib/anaconda/yuminstall.py",
line 1401, in doPreInstall
anaconda.id.network.write(anaconda.rootPath)
File "/tmp/treedir.1828/instimage/usr/lib/anaconda/backend.py", line
180, in doPreInstall
anaconda.backend.doPreInstall(anaconda)
File "/usr/lib/anaconda/dispatch.py", line 201, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 124, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/gui.py", line 1018, in nextClicked
self.anaconda.dispatch.gotoNext()
File "/usr/lib/anaconda/iw/progress_gui.py", line 243, in renderCallback
self.intf.icw.nextClicked()
File "/usr/lib/anaconda/gui.py", line 1045, in handleRenderCallback
self.currentWindow.renderCallback()
AttributeError: 'module' object has no attribute 'pumpNetDevice'
Local variables in innermost frame:
self: <network.Network instance at 0x2aeccea6c638>
myns: 10.0.2.3
dev: DEVICE=eth0
BOOTPROTO=dhcp
DHCPCLASS=
HWADDR=52:54:00:12:34:56
ONBOOT=yes
------------------
# Kickstart file automatically generated by anaconda.
auth --useshadow --enablemd5
install
cdrom
lang en_US.UTF-8
langsupport --default en_US.UTF-8 en_US.UTF-8
# Clear the Master Boot Record
zerombr
firstboot --disabled
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto dhcp --hostname MessageNet.msgnet.com
rootpw mnkickstart
firewall --enabled --http --ssh --smtp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc America/Indiana/Indianapolis
%include /tmp/partition-information
%pre
#!/bin/sh
## generic script to pick hda, sda, or RAID 1
# -a "`cat /proc/ide/hda/media`"Â =Â "disk"Â ]
HD1="/dev/sda"
HD1SHORT="sda"
HD2="/dev/sdb"
HD2SHORT="sdb"
if [ -e /proc/ide/hda/media ]
then
if [ "`cat /proc/ide/hda/media`" == "disk" ]
then
HD1="/dev/hda"
HD1SHORT="hda"
HD2="/dev/hdb"
HD2SHORT="hdb"
fi
fi
## Determine size of harddisk
HD1SIZE=`fdisk -l $HD1 | grep Disk | cut -f 3 -d ' ' | cut -f 1 -d '.'`
if [ $HD1SIZE -le 20 ]
then
ROOTSIZE=10000
SWAPSIZE=1000
else
ROOTSIZE=20000
SWAPSIZE=4000
fi
##Â Save partitioning information into file so include section can grab it.
echo "bootloader --location=mbr --driveorder=$HD1SHORT --append=\"rhgb quiet\" " > /tmp/partition-information
echo "clearpart --all --initlabel " >> /tmp/partition-information
echo "part / --ondisk=$HD1SHORT --fstype ext3 --size=$ROOTSIZE --asprimary " >> /tmp/partition-information
echo "part swap --ondisk=$HD1SHORT --size=$SWAPSIZE --asprimary " >> /tmp/partition-information
echo "part /home --ondisk=$HD1SHORT --fstype ext3 --size=1 --asprimary --grow " >> /tmp/partition-information
%packages
@development-libs
@editors
@x-software-development
@gnome-desktop
@dialup
@core
@base
@ftp-server
@legacy-software-development
@base-x
@web-server
@smb-server
@printing
@mail-server
@sound-and-video
@development-tools
@graphical-internet
mesa-libGLU-devel
device-mapper-multipath
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
imake
-sysreport
%post
# Install is complete show the post progress.
init 3
chvt 3
# Echo the type of install we are doing
cat /proc/cmdline > /tmp/MN_server
echo "Change RunLevel boot console mode..."
sed -i s'/id:5:/id:3:/'g /etc/inittab
echo "Setting up nameserver"
echo nameserver 65.24.0.168 > /etc/resolv.conf
echo nameserver 65.24.0.169 >> /etc/resolv.conf
service network restart
yum -y update
yum -y install vnc
yum -y install tftp
yum -y install tftp-server
yum -y install sendmail-cf
yum -y install dhcp
yum -y install ncurses-devel
yum -y install compat-openldap
yum -y install libxml2
yum -y install libxml2-devel
yum -y install lsscsi
yum -y install alsa-lib-devel
yum -y install alsa-lib-devel.i386
echo ""
echo "Kickstart installation complete - reboot"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos