2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-18 17:20:19 +00:00

Merge pull request #786 from penguhyang/getinstdisk_log

logging the getinstdisk script log to xcat.log properly
This commit is contained in:
yangsong
2016-03-11 16:36:08 +08:00
2 changed files with 13 additions and 2 deletions

View File

@@ -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
@@ -266,4 +272,7 @@ NEXTSERVER=${NEXTSERVER%%:*}
export nextserver=$NEXTSERVER
#INSTALL_SOURCES_IN_PRE#
if [ "$XCATDEBUGMODE" != "0" ] && [ "$XCATDEBUGMODE" != "" ]
then
set +x
fi

View File

@@ -51,8 +51,10 @@ d-i partman-md/device_remove_md boolean true
#create the /tmp/partitionfile based on the uefi or legacy bios
d-i partman/early_command string \
{ \
#INCLUDE_GET_FIRST_DISK_SCRIPT# \
debconf-set partman-auto/disk "$(cat /tmp/install_disk)"
debconf-set partman-auto/disk "$(cat /tmp/install_disk)"; \
} >>/tmp/pre-install.log 2>&1
d-i partman-auto/expert_recipe_file string /tmp/partitionfile
# This makes partman automatically partition without confirmation, provided