From 4eb4411901b68785c8aba3f0aa48722abacdc570 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 17 Oct 2023 11:36:26 +0200 Subject: [PATCH] Changing output of templates/el9-standard.ks --- templates/el9-standard.ks | 57 +-------------------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/templates/el9-standard.ks b/templates/el9-standard.ks index 9fda3bc..aa7b7e2 100644 --- a/templates/el9-standard.ks +++ b/templates/el9-standard.ks @@ -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 -- 2.39.5