[rhn-users] kickstart post scripts always ignored

Lamon, Frank III Frank_LaMon at csx.com
Mon Jun 19 21:28:57 UTC 2006


I've seen similar symptoms in the past - it was always a script that had been edited on a Windows machine in our case (stupid end of line characters). If your script has been touch with a win editor try running the dos2unix command against the script to clean it up and try it again - always worked for us.

Frank L.

-----Original Message-----
From: rhn-users-bounces at redhat.com
[mailto:rhn-users-bounces at redhat.com]On Behalf Of Nick Baronian
Sent: Monday, June 19, 2006 5:18 PM
To: rhn-users at redhat.com
Subject: [rhn-users] kickstart post scripts always ignored


Lately I have been having problems getting stuff to run in the %post
section in my kickstarts.  I never use to have a problem running %post
stuff but lately I have tried multiple times to use a kickstart file
and have it perform tasks in the %post section but everytime I try it
fails to run anything in %post.  Below is a paste of a ks.cfg file I
have tried using.  Does anyone see anything wrong with this?  The
runlevels, nor users never get created and it never runs my mounted
script.

Thanks,
Nick Baronian

# Kickstart file automatically generated by anaconda.
install
nfs --server=172.16.12.162 --dir=/u01/discs/ent4
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "ATI Radeon 7000" --videoram 16384 --hsync 31.5-37.9
--vsync 50-70 --resolution 800x600 --depth 16 --startxonboot
--defaultdesktop gnome
network --device eth0 --bootproto static --ip 172.16.12.116 --netmask
255.255.0.0 --gateway 172.16.1.254 --nameserver 172.16.15.46
--hostname test.example.com
network --device eth1 --onboot no --bootproto dhcp --hostname test.example.com
rootpw --iscrypted $ftgddffngmdfgkaTdJC5g8678
selinux --disabled
authconfig --enableshadow --enablemd5
timezone --utc America/New_York
bootloader --location=mbr --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --drives=sda
part /boot --fstype "ext3" --size=100 --ondisk=sda
part / --fstype "ext3" --size=55443 --ondisk=sda
part swap --size=2048 --ondisk=sda
part swap --size=2048 --ondisk=sda
part /var --fstype "ext3" --size=100 --grow --ondisk=sda

%packages
@ engineering-and-scientific
@ admin-tools
@ editors
@ xemacs
@ emacs
@ system-tools
@ gnome-software-development
@ xemacs
@ text-internet
@ x-software-development
@ gnome-desktop
@ dialup
@ ftp-server
@ legacy-software-development
@ emacs
@ smb-server
@ base-x
@ graphics
@ web-server
@ ruby
@ server-cfg
@ sound-and-video
@ development-tools
@ xemacs
@ ruby
@ graphical-internet
-evolution-webcal
grub
-system-config-printer-gui
-xchat
-gcc-java
kernel-smp
-gnomemeeting
-gimp-print-utils
kernel-smp-devel
-java-1.4.2-gcj-compat
-evolution
-kernel-hugemem-devel
-gaim
e2fsprogs

%post
/sbin/chkconfig --level 3 atd on
/sbin/chkconfig --level 3 ypbind off
/sbin/chkconfig --level 3 snmptrapd off
/sbin/chkconfig --level 3 rpcidmapd off
/sbin/chkconfig --level 3 squid off
/sbin/chkconfig --level 3 cups off
/sbin/chkconfig --level 3 lm_sensors on
/sbin/chkconfig --level 3 1messagebus on
/sbin/chkconfig --level 3 sendmail on
/sbin/chkconfig --level 3 smb off
/sbin/chkconfig --level 3 winbind off
/sbin/chkconfig --level 3 pcmcia off
/sbin/chkconfig --level 3 mdmpd off
/sbin/chkconfig --level 3 vncserver off
/sbin/chkconfig --level 3 spamassassin off
/sbin/chkconfig --level 3 netplugd pff
/sbin/chkconfig --level 3 vsftpd on
/sbin/chkconfig --level 3 arptables_jf off
/sbin/chkconfig --level 3 tux off
/sbin/chkconfig --level 3 ipvsadm off
/sbin/chkconfig --level 3 haldaemon on
/sbin/chkconfig --level 3 anacron off
/sbin/chkconfig --level 3 mdmonitor off
/sbin/chkconfig --level 3 sshd on
/sbin/chkconfig --level 3 rpcsvcgssd off
/sbin/chkconfig --level 3 irqbalance on
/sbin/chkconfig --level 3 gpm off
/sbin/chkconfig --level 3 snmpd off
/sbin/chkconfig --level 3 cpuspeed on
/sbin/chkconfig --level 3 kudzu off
/sbin/chkconfig --level 3 nfslock off
/sbin/chkconfig --level 3 xinetd on
/sbin/chkconfig --level 3 dataeng off
/sbin/chkconfig --level 3 firstboot off
/sbin/chkconfig --level 3 ccsd on
/sbin/chkconfig --level 3 saslauthd off
/sbin/chkconfig --level 3 readahead_early off
/sbin/chkconfig --level 3 rgmanager on
/sbin/chkconfig --level 3 cups-config-daemon off
/sbin/chkconfig --level 3 apmd off
/sbin/chkconfig --level 3 autofs on
/sbin/chkconfig --level 3 dc_server off
/sbin/chkconfig --level 3 bluetooth off
/sbin/chkconfig --level 3 acpid on
/sbin/chkconfig --level 3 nscd off
/sbin/chkconfig --level 3 syslog on
/sbin/chkconfig --level 3 microcode_ctl off
/sbin/chkconfig --level 3 smartd off
/sbin/chkconfig --level 3 xfs off
/sbin/chkconfig --level 3 iptables off
/sbin/chkconfig --level 3 rawdevices on
/sbin/chkconfig --level 3 network on
/sbin/chkconfig --level 3 psacct off
/sbin/chkconfig --level 3 rpcgssd off
/sbin/chkconfig --level 3 ntpd on
/sbin/chkconfig --level 3 rhnsd on
/sbin/chkconfig --level 3 netfs on
/sbin/chkconfig --level 3 crond on
/sbin/chkconfig --level 3 diskdump off
/sbin/chkconfig --level 3 nfs off
/sbin/chkconfig --level 3 netdump off
/sbin/chkconfig --level 3 isdn off
/sbin/chkconfig --level 3 auditd off
/sbin/chkconfig --level 3 portmap off
/sbin/chkconfig --level 3 NetworkManager off
/sbin/chkconfig --level 3 pulse off
/sbin/chkconfig --level 3 httpd off
/sbin/chkconfig --level 3 readahead off
/sbin/chkconfig --level 3 irda off
/sbin/chkconfig --level 3 dc_client off
/sbin/chkconfig --level 3 qlremote off
/sbin/chkconfig --level 3 instsvcdrv off
/sbin/chkconfig --level 3 klogin off
/sbin/chkconfig --level 3 cups-lpd off
/sbin/chkconfig --level 3 chargen-udp off
/sbin/chkconfig --level 3 kshell off
/sbin/chkconfig --level 3 time-udp off
/sbin/chkconfig --level 3 daytime off
/sbin/chkconfig --level 3 krb5-telnet off
/sbin/chkconfig --level 3 echo-udp off
/sbin/chkconfig --level 3 eklogin off
/sbin/chkconfig --level 3 chargen off
/sbin/chkconfig --level 3 gssftp off
/sbin/chkconfig --level 3 echo off
/sbin/chkconfig --level 3 rsync off
/sbin/chkconfig --level 3 daytime-udp off
/sbin/chkconfig --level 3 time off
/usr/sbin/useradd nick
mkdir /mnt/temp2
mount -o nolock 172.16.12.162:/u01/kickstart /mnt/temp2
open -s -w -- /mnt/temp2/postinstall

_______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users

-----------------------------------------
This email transmission and any accompanying attachments may
contain CSX privileged and confidential information intended only
for the use of the intended addressee.  Any dissemination,
distribution, copying or action taken in reliance on the contents
of this email by anyone other than the intended recipient is
strictly prohibited.  If you have received this email in error
please immediately delete it and  notify sender at the above CSX
email address.  Sender and CSX accept no liability for any damage
caused directly or indirectly by receipt of this email.





More information about the rhn-users mailing list