Hi
all.
I've been working on
a kickstart that concludes the install with a nfs copy of a runonce script I
wrote. The %post not only doesn't seem to be executing, but I can't figure out
where or if I can log %post output.
The ks install works
fine, it's just the below %post that doesn't effect anything. Note that I
literally commented out everything to if it's working at all. /etc/test isn't
created, nor is the /mnt/entrust dir or the copy itself.
Thanks for ideas,
and I hope to contribute in the future as I continue to work with kickstart
installs.
-
Chris
%post --nochroot
# eth0 script modification to get DHCP working
correctly (only for DHCP)
# cp /etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0.bak
# echo "check_link_down() {" >> /etc/sysconfig/network-scripts/ifcfg-eth0
# echo " return 1;" >> /etc/sysconfig/network-scripts/ifcfg-eth0
# echo "}" >> /etc/sysconfig/network-scripts/ifcfg-eth0
# /etc/sysconfig/network-scripts/ifup eth0
# echo "check_link_down() {" >> /etc/sysconfig/network-scripts/ifcfg-eth0
# echo " return 1;" >> /etc/sysconfig/network-scripts/ifcfg-eth0
# echo "}" >> /etc/sysconfig/network-scripts/ifcfg-eth0
# /etc/sysconfig/network-scripts/ifup eth0
# Copy and execute runonce.bsh from floppy, NFS, or
CDROM
echo "testing" > /etc/test
# NFS Mount
# Start portmap to enable RPC calls (needed for NFS mounting)
#service portmap start
mkdir /mnt/entrust
mount 10.4.146.47:/var/entrust/eewmc/7.5/image /mnt/entrust
cp /mnt/entrust/init/runonce.bsh /tmp/runonce.bsh
#umount /mnt/entrust
#rmdir /mnt/entrust
#service portmap stop
# Start portmap to enable RPC calls (needed for NFS mounting)
#service portmap start
mkdir /mnt/entrust
mount 10.4.146.47:/var/entrust/eewmc/7.5/image /mnt/entrust
cp /mnt/entrust/init/runonce.bsh /tmp/runonce.bsh
#umount /mnt/entrust
#rmdir /mnt/entrust
#service portmap stop
# Execute runonce.bsh with optional install type
(CD, NFS)
# -> CD
# -> NFS <nfs server> <mount path> (all optional or none)
#chmod 755 /tmp/runonce.bsh
#/tmp/runonce.bsh NFS 10.4.146.47 /var/entrust/eewmc/7.5/image
#/tmp/runonce.bsh CD
#/tmp/runonce.bsh
# -> CD
# -> NFS <nfs server> <mount path> (all optional or none)
#chmod 755 /tmp/runonce.bsh
#/tmp/runonce.bsh NFS 10.4.146.47 /var/entrust/eewmc/7.5/image
#/tmp/runonce.bsh CD
#/tmp/runonce.bsh
#rm -f /tmp/runonce.bsh
# Clean up DHCP changes (DHCP only)
#cp /etc/sysconfig/network-scripts/ifcfg-eth0.bak /etc/sysconfig/network-scripts/ifcfg-eth0
#rm -r /etc/sysconfig/network-scripts/ifcfg-eth0.bak
#/etc/sysconfig/network-scripts/ifup eth0
#cp /etc/sysconfig/network-scripts/ifcfg-eth0.bak /etc/sysconfig/network-scripts/ifcfg-eth0
#rm -r /etc/sysconfig/network-scripts/ifcfg-eth0.bak
#/etc/sysconfig/network-scripts/ifup eth0