]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Changing output of templates/el9-standard.ks
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 17 Oct 2023 09:36:26 +0000 (11:36 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 17 Oct 2023 09:36:26 +0000 (11:36 +0200)
templates/el9-standard.ks

index 9fda3bcadff4dd162d2f9a83513b9d141a7d95ac..aa7b7e2f71cd5fbf2e9fbaaffffa0f04764615a6 100644 (file)
@@ -14,7 +14,6 @@ url --url="{{ distro.ks_repo_url }}" --noverifyssl
 sshpw --username=inst testtest --plaintext
 
 # Root install-password
-# rootpw --iscrypted ${ROOT_PWD_HASH}
 rootpw --iscrypted $6$tPpm.7Bc7.H4aoIC$ItrG9r8VDmMZxK301yGlIhTbv2ZG7cZ33m3WlAyr3NfYvb6O5fKFNtiIBRu/Ystju4lS/siTiiWCGLDI/U31p1
 
 # System authorization information
@@ -79,14 +78,8 @@ 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
@@ -96,31 +89,15 @@ 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
 
@@ -128,11 +105,7 @@ mkfs.xfs -V
 # 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
 
@@ -155,44 +128,31 @@ 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
 
@@ -208,24 +168,9 @@ 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