From 4967f9b80c628ee40cccdeb699ca2e467ce4a331 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 27 Jun 2016 22:24:52 -0400 Subject: [PATCH] save the content of the partition file to xcat.log to inspect the partition scheme after installation --- xCAT-server/share/xcat/install/scripts/pre.rh | 5 +++++ xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.rh b/xCAT-server/share/xcat/install/scripts/pre.rh index 65f66380d..0e95da4e4 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.rh +++ b/xCAT-server/share/xcat/install/scripts/pre.rh @@ -223,6 +223,11 @@ echo "part / --size 1 --grow --ondisk $instdisk --fstype $FSTYPE" >> /tmp/partit #XCA_PARTITION_SCRIPT# +#save the content of /tmp/partitionfile in /var/log/xcat/xcat.log +#so that we can inspect the partition scheme after installation +echo "=================The Partition Scheme================" +cat /tmp/partitionfile +echo "=====================================================" # The following code is to generate the repository for the installation cat /proc/cmdline diff --git a/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 b/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 index f9125de9d..9bdb9552d 100755 --- a/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 +++ b/xCAT-server/share/xcat/install/scripts/pre.rh.rhels7 @@ -210,7 +210,11 @@ if [ -n "#ENV:PERSKCMDLINE#" ];then grep bootloader /tmp/partitionfile >/dev/null 2>&1|| echo -e "bootloader --append=\"#ENV:PERSKCMDLINE#\"" >>/tmp/partitionfile fi - +#save the content of /tmp/partitionfile in /var/log/xcat/xcat.log +#so that we can inspect the partition scheme after installation +echo "=================The Partition Scheme================" +cat /tmp/partitionfile +echo "=====================================================" # The following code is to generate the repository for the installation cat /proc/cmdline