]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding additional output to templates/el9-standard.ks
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 17 Oct 2023 08:35:30 +0000 (10:35 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 17 Oct 2023 08:35:30 +0000 (10:35 +0200)
etc/cobbler-distros.d/centos-stream-8.yaml
etc/cobbler-distros.d/rhel-9.yaml
templates/el9-standard.ks

index c1ea73a5f837e2533af15707d0617603c912b99d..8ec725bc4ed3f5c2e296f40e27c2f93d1a6a5268 100644 (file)
@@ -30,6 +30,7 @@ cobbler-distros:
       - 'curl'
       - 'dbus'
       - 'git'
+      - 'grubby'
       - 'iotop'
       - 'langpacks-de'
       - 'lsof'
index c51b4a8427936ded84e1f278f7f7c5d56d181e24..2f352cdf6565cd0dd2345367b3a36a4ef7aae8fc 100644 (file)
@@ -18,6 +18,7 @@ cobbler-distros:
       - 'chrony'
       - 'curl'
       - 'dbus'
+      - 'grubby'
       - 'iotop'
       - 'kexec-tools'
       - 'langpacks-de'
index c462933d634f2d7c742b67b7fa3420a9e9b379a4..9154f63b632d5e8e294f29c0fd3d70bddeb19f52 100644 (file)
@@ -78,8 +78,14 @@ logvol  /var/log  --vgname=vgroot --name=log  --fstype=xfs  --size=3072
 # Pre tasks
 %pre --interpreter=/bin/bash --log=/var/log/ks-pre.log
 #raw
+echo
+echo "###########################################################"
+echo
+
 echo "[$( date --rfc-3339=seconds )]: Let's launch the missle ..."
 echo
+echo "------------"
+echo "Checking nameservers ..."
 if grep '^nameserver' /etc/resolv.conf >/dev/null ; then
     echo "Nameservers are defined in /etc/resolv.conf:"
     grep '^nameserver' /etc/resolv.conf
@@ -89,11 +95,31 @@ else
     echo "nameserver 93.188.104.82" >>/etc/resolv.conf
     echo "nameserver 217.66.52.10" >>/etc/resolv.conf
 fi
-
 echo
 echo "Used /etc/resolv.conf:"
 cat /etc/resolv.conf
 
+echo
+echo "------------"
+echo "Blockdevices:"
+lsblk
+
+echo
+echo "------------"
+echo "Current Linux-Kernel:"
+uname -a
+
+echo
+echo "------------"
+echo "Current Kernel packages:"
+rpm -qa | grep -i kernel | sort -i
+
+echo
+echo "------------"
+echo "Mkfs.xfs"
+mkfs.xfs -V
+
+
 #end raw
 %end
 
@@ -101,7 +127,11 @@ cat /etc/resolv.conf
 # Pre installation tasks
 %pre-install --interpreter=/bin/bash --log=/var/log/ks-pre-install.log
 #raw
+echo
+echo "###########################################################"
+echo
 echo "[$( date --rfc-3339=seconds )]: Pre installation tasks ..."
+
 #end raw
 %end
 
@@ -124,31 +154,44 @@ exec < /dev/console &> >(tee -a "$POST_LOG")
 ### debug
 # set -x
 
+echo
+echo "###########################################################"
+echo
+echo "[$( date --rfc-3339=seconds )]: Post installation tasks in chroot ..."
+
+echo
+echo "------------"
 echo "cobbler profile = $profile_name"
 
 echo
+echo "------------"
 echo "IP interfaces"
 ip link show
 
 echo
+echo "------------"
 echo "IP addresses"
 ip address show
 
 echo
+echo "------------"
 echo "IPv4 routes"
 ip route list
 
 echo
+echo "------------"
 echo "IPv6 routes"
 ip -6 route list
 
 echo
+echo "------------"
 echo "/etc/resolv.conf"
 cat /etc/resolv.conf
 
 if [[ -d "/etc/yum.repos.d" ]] ; then
 
     echo
+    echo "------------"
     echo "/etc/yum.repos.d/"
     ls -lA /etc/yum.repos.d
 
@@ -164,6 +207,27 @@ if [[ -d "/etc/yum.repos.d" ]] ; then
 
 fi
 
+echo
+echo "------------"
+echo "Current Kernel packages:"
+rpm -qa | grep -i kernel | sort -i
+
+echo
+echo "------------"
+echo "Mkfs.xfs"
+mkfs.xfs -V
+
+echo
+echo "------------"
+echo "Grub installed kernels:"
+grubby --info=ALL
+
+echo
+echo "------------"
+echo "Grub default kernel:"
+grubby --default-index
+grubby --default-title
+grubby --default-kernel
 
 ### remove unnecessary directory
 rm -rf /var/var