Click to See Complete Forum and Search --> : KICKSTART %post section


Luigi
10-29-2002, 01:38 PM
Hey guys -
I'm making myself a kickstart disc for my installations at work. i get through the pre and packages sections okay, but i can't seem to get it to execute my post script. here 'tis:


%post
mount /dev/cdrom
cp -rv /mnt/cdrom/* /
chmod 644 /etc/auto.master
chmod 644 /etc/auto.ruser
chmod 644 /etc/sysconfig/iptables
chmod 777 /usr/bin/xgraph
chmod 755 /usr/lib/xmms/Input/libmpg123*
tar -xvf /u.tar
mv /etc/rc5.d/*autofs /etc/rc5.d/S28autofs
/etc/init.d/nfs restart
/etc/init.d/autofs restart
rpm -ivh /u/latest/*.rpm

it should setup my nfs shares using autofs, setup the firewall, install the xgraph binary and mpg123 plugin for xmms, and untar the folder of links that link to folders on the nfs share (latest being one of them). then it should install anything in the latest folder on the share.

it doesn't appear to do any of this. maybe it's 'cause it runs in a chroot'ed environment by default? i tried specifying nochroot, but that didn't do anything.