Kickstart file dies at the very end of the "%post" section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I made a custom kickstart file. It works great until the very end of the "%post" section. It does all the stuff I show below until it gets to the line that says "cp -f -v /etc/samba/smb.conf /etc/samba/smb.bak". I know that line never get executed and the line before ("mount testlinux:/nfs/fc7 /mnt/temp") it may not work but I have no way of knowing. I do know the line "mkdir -p /mnt/temp" works. Also, "mount testlinux:/nfs/fc7 /mnt/temp" works from the command line. Does Anaconda/Kickstart write its errors anywhere?

Any ideas?

Thanks!

Arch



%post
chkconfig bluetooth off
chkconfig nfs on
chkconfig nmb on
chkconfig smb on
chkconfig winbind on
chkconfig bttrack off
chkconfig dund off
chkconfig hidd off
chkconfig pand off

mkdir -p /etc/system-info
date --iso-8601=minutes > /etc/system-info/install-date
echo "method=kickstart version=1 revision=1" > /etc/system-info/install-method
mkdir -p /batch
mkdir -p /downloads

cat <<EOF >/tmp/crontab.root
# Update YUM
40 23 * * * /batch/run_yum.sh > /tmp/yum_update.txt
0 3 * * * /batch/run_yum.sh > /tmp/yum_update.txt
EOF

crontab /tmp/crontab.root
rm /tmp/crontab.root

mkdir -p /mnt/temp
mount testlinux:/nfs/fc7 /mnt/temp
cp -f -v /etc/samba/smb.conf /etc/samba/smb.bak
cp -f -v /mnt/temp/smb.conf /etc/samba/smb.conf
cp -r /mnt/temp/batch/* /batch/
cp -r /mnt/temp/downloads/* /downloads/
chmod 755 /batch/*.sh
chmod 755 /downloads/*.sh


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux