From d4196e47d05986130c8d6c0d64eaf1cfa02975a9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Jun 2020 17:58:37 +0200 Subject: [PATCH] Changes on Debug output --- kickstart/template-centos7.ks | 2 +- snippets/tpl.300.create-motd.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kickstart/template-centos7.ks b/kickstart/template-centos7.ks index 3ed3a67..552b91b 100644 --- a/kickstart/template-centos7.ks +++ b/kickstart/template-centos7.ks @@ -120,7 +120,7 @@ exec < /dev/console &> >(tee -a "$POST_LOG") ### debug -set -x +#set -x echo "cobbler profile = $profile_name" diff --git a/snippets/tpl.300.create-motd.sh b/snippets/tpl.300.create-motd.sh index 8a557c0..0215ae6 100644 --- a/snippets/tpl.300.create-motd.sh +++ b/snippets/tpl.300.create-motd.sh @@ -19,6 +19,10 @@ create_motd() { "${mk_script}" > /etc/motd mkdir -pv /root/bin cp -pv "${mk_script}" /root/bin/create-motd.sh + echo "Generated motd:" + cat /etc/motd + echo '<--' + echo else echo "[$(date)]: Could not get 'mk_create_motd.ksh' from '${url}'." | tee -a "${ERROR_POINTER}" fi -- 2.39.5