diff --git a/xCAT-server/share/xcat/install/scripts/pre.ubuntu b/xCAT-server/share/xcat/install/scripts/pre.ubuntu index edbf17beb..3ca5e4515 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.ubuntu +++ b/xCAT-server/share/xcat/install/scripts/pre.ubuntu @@ -5,6 +5,11 @@ fi #!/bin/sh +if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then + killall syslogd + syslogd -R #XCATVAR:XCATMASTER# +fi + if [ ! -c /dev/vcs ]; then mknod /dev/vcs c 7 0 fi diff --git a/xCAT-server/share/xcat/install/scripts/pre.ubuntu.ppc64 b/xCAT-server/share/xcat/install/scripts/pre.ubuntu.ppc64 index 81d44053a..7fe22bf84 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.ubuntu.ppc64 +++ b/xCAT-server/share/xcat/install/scripts/pre.ubuntu.ppc64 @@ -1,5 +1,15 @@ +export XCATDEBUGMODE="#TABLEBLANKOKAY:site:key=xcatdebugmode:value#" +if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then + set -x +fi + #!/bin/sh +if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then + killall syslogd + syslogd -R #XCATVAR:XCATMASTER# +fi + if [ ! -c /dev/vcs ]; then mknod /dev/vcs c 7 0 fi @@ -222,3 +232,7 @@ echo " ." >> /tmp/partitionfile exit 0 +if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then +then + set +x +fi