# Pre tasks
%pre --interpreter=/bin/bash --log=/var/log/ks-pre.log
#raw
+
+echo
+echo "###########################################################"
+echo "Pre-all tasks ..."
+echo
echo "[$( date --rfc-3339=seconds )]: Let's launch the missle ..."
echo
if grep '^nameserver' /etc/resolv.conf >/dev/null ; then
echo "Used /etc/resolv.conf:"
cat /etc/resolv.conf
+echo
+echo "Linux uname:"
uname -a
+
+echo
+echo "Linux kernel versions:"
rpm -qa | grep -i kernel | sort -i
-mkfs.xfs -V
+
+echo
+echo "Devices:"
+echo
+ls -lA /dev/disk/*/
#end raw
%end
### debug
# set -x
+echo
+echo "###########################################################"
+echo "Post install tasks ..."
+echo
+
echo "cobbler profile = $profile_name"
echo
fi
+echo
+echo "Linux kernel versions:"
rpm -qa | grep -i kernel | sort -i
-mkfs.xfs -V
-grubby --info=ALL
+
+echo
+echo "Default kernel in GRUB:"
grubby --default-index
grubby --default-title
grubby --default-kernel