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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux