On 5/7/2010 3:19 PM, Ronald J. Yacketta wrote:
Hello all!
Just ran into a issue this week were one of our snippets (a .sh script)
is not being ran in %post This has been working for months now without
issue until we upgraded to
cobbler --version
Cobbler 2.0.3.1
source: ?, ?
build time: Fri Apr 30 14:43:50 2010
here is the relevant part of the KS
%post
(
echo "Post-Install section begins.."
sleep 15
$SNIPPET('server_check.sh')
$SNIPPET('post_install_network_config')
$SNIPPET('post_install_kernel_options')
$SNIPPET('post_anamon')
$SNIPPET('log_ks_post')
echo "Post-Install section ends.."
$SNIPPET('cobbler_register')
$kickstart_done
) 2>&1 | tee /root/post-install.log
everything runs except our home group snippet server_check.sh the
anaconda log shows
%post
(
echo "Post-Install section begins.."
sleep 15
$SNIPPET('server_check.sh')
# Start post_install_network_config generated code
# End post_install_network_config generated code
wget -O /usr/local/sbin/anamon "http://137.143.212.1/cblr/aux/anamon"
wget -O /etc/rc.d/init.d/anamon "http://137.143.212.1/cblr/aux/anamon.init"
chmod 755 /etc/rc.d/init.d/anamon /usr/local/sbin/anamon
test -d /selinux&& restorecon /etc/rc.d/init.d/anamon
/usr/local/sbin/anamon
chkconfig --add anamon
cat<< __EOT__> /etc/sysconfig/anamon
COBBLER_SERVER="137.143.212.1"
COBBLER_PORT="80"
COBBLER_NAME="f12-x86_64"
LOGFILES="/var/log/boot.log /var/log/messages /var/log/dmesg"
__EOT__
set -x -v
exec 1>/root/ks-post.log 2>&1
This script has not changed in a couple months
-rw-r--r-- 1 root root 7641 2010-02-05 13:13 server_check.sh
any thoughts?
-Ron
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
You have unescaped '$'s. Add either #raw & #end raw tags around the
line or escape them with a '\'. If you want more info, see my email
from yesterday.
--
Benjamin Riggs
System Staff
School of Mathematics
University of Minnesota
11 Vincent Hall
612-625-4895