diff --git a/xCAT-server/share/xcat/install/rh/compute.rhels6.ppc64.tmpl b/xCAT-server/share/xcat/install/rh/compute.rhels6.ppc64.tmpl index 0039df28a..2633c2ace 100644 --- a/xCAT-server/share/xcat/install/rh/compute.rhels6.ppc64.tmpl +++ b/xCAT-server/share/xcat/install/rh/compute.rhels6.ppc64.tmpl @@ -146,9 +146,16 @@ reboot %packages #INCLUDE_DEFAULT_PKGLIST# %pre +{ +echo "Running Kickstart Pre-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +} >>/tmp/pre-install.log 2>&1 %post mkdir -p /var/log/xcat/ { +cat >> /var/log/xcat/xcat.log << "EOF" +%include /tmp/pre-install.log +EOF +echo "Running Kickstart Post-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh# } >>/var/log/xcat/xcat.log 2>&1 diff --git a/xCAT-server/share/xcat/install/rh/compute.rhels6.x86_64.tmpl b/xCAT-server/share/xcat/install/rh/compute.rhels6.x86_64.tmpl index 1c83c82d2..f0934b98c 100644 --- a/xCAT-server/share/xcat/install/rh/compute.rhels6.x86_64.tmpl +++ b/xCAT-server/share/xcat/install/rh/compute.rhels6.x86_64.tmpl @@ -149,10 +149,17 @@ reboot %packages #INCLUDE_DEFAULT_PKGLIST# %pre +{ +echo "Running Kickstart Pre-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +} >>/tmp/pre-install.log 2>&1 %post mkdir -p /var/log/xcat/ { +cat >> /var/log/xcat/xcat.log << "EOF" +%include /tmp/pre-install.log +EOF +echo "Running Kickstart Post-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh# } >>/var/log/xcat/xcat.log 2>&1 diff --git a/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl b/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl index b421fccf7..52dd68699 100644 --- a/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl +++ b/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl @@ -147,11 +147,18 @@ reboot #INCLUDE_DEFAULT_PKGLIST# %end %pre +{ +echo "Running Kickstart Pre-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh.rhels7# +} >>/tmp/pre-install.log 2>&1 %end %post mkdir -p /var/log/xcat/ { +cat >> /var/log/xcat/xcat.log << "EOF" +%include /tmp/pre-install.log +EOF +echo "Running Kickstart Post-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat# #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rhels7# } >>/var/log/xcat/xcat.log 2>&1 diff --git a/xCAT-server/share/xcat/install/scripts/chroot.sles b/xCAT-server/share/xcat/install/scripts/chroot.sles index 85cabf3d9..a1d14ce09 100644 --- a/xCAT-server/share/xcat/install/scripts/chroot.sles +++ b/xCAT-server/share/xcat/install/scripts/chroot.sles @@ -7,6 +7,11 @@ > /mnt/var/log/xcat/xcat.log + +echo "Running AutoYaST Chroot-Installation script..." + #!/bin/sh AWK=`find / -name awk | head -1` diff --git a/xCAT-server/share/xcat/install/scripts/post.sles11 b/xCAT-server/share/xcat/install/scripts/post.sles11 index 332c050ce..a412fb6dc 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles11 +++ b/xCAT-server/share/xcat/install/scripts/post.sles11 @@ -7,6 +7,7 @@ >/var/log/xcat/xcat.log 2>&1 diff --git a/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 b/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 index e241f9fdb..7796c0239 100755 --- a/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 +++ b/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 @@ -1,3 +1,9 @@ +export XCATDEBUGMODE="#TABLEBLANKOKAY:site:key=xcatdebugmode:value#" +if [ "$XCATDEBUGMODE" != "0" ] && [ "$XCATDEBUGMODE" != "" ] +then + set -x +fi + if grep n8r /proc/cmdline > /dev/null 2>&1; then stty crtscts @@ -200,4 +206,7 @@ NEXTSERVER=${NEXTSERVER%%:*} export nextserver=$NEXTSERVER #INSTALL_SOURCES_IN_PRE# - +if [ "$XCATDEBUGMODE" != "0" ] && [ "$XCATDEBUGMODE" != "" ] +then + set +x +fi diff --git a/xCAT-server/share/xcat/install/scripts/pre.sles b/xCAT-server/share/xcat/install/scripts/pre.sles index 18bf7bce4..b7c7ab29f 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.sles +++ b/xCAT-server/share/xcat/install/scripts/pre.sles @@ -5,6 +5,9 @@ !#INSTALL_SOURCES_IN_PRE#!' /tmp/profile/modified1.xml > /tmp/profile/modified.xml +} >>/tmp/pre-install.log 2>&1 ]]>