From 1f86ef1f13c6adfeb7f648152e9c9af727153f17 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 17 Oct 2023 16:34:18 +0200 Subject: [PATCH] Changing output in templates/el9-standard.ks --- templates/el9-standard.ks | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/templates/el9-standard.ks b/templates/el9-standard.ks index aa7b7e2..79c820d 100644 --- a/templates/el9-standard.ks +++ b/templates/el9-standard.ks @@ -78,6 +78,11 @@ 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 "Pre-all tasks ..." +echo echo "[$( date --rfc-3339=seconds )]: Let's launch the missle ..." echo if grep '^nameserver' /etc/resolv.conf >/dev/null ; then @@ -94,9 +99,18 @@ echo 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 @@ -128,6 +142,11 @@ exec < /dev/console &> >(tee -a "$POST_LOG") ### debug # set -x +echo +echo "###########################################################" +echo "Post install tasks ..." +echo + echo "cobbler profile = $profile_name" echo @@ -168,9 +187,12 @@ if [[ -d "/etc/yum.repos.d" ]] ; then 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 -- 2.39.5