From 02a92a4c737f3f3d7f5e6d18dd7f8f831a469ce6 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Thu, 2 Aug 2018 08:52:24 +0200 Subject: record the generator commandline in the generated files --- prep-boot-floppy-and-ks-config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'prep-boot-floppy-and-ks-config') diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config index 5c3daf6..852545c 100755 --- a/prep-boot-floppy-and-ks-config +++ b/prep-boot-floppy-and-ks-config @@ -8,6 +8,8 @@ Self=$(basename $0) +SelfCommandLine="$(echo ${0} ${@} | sed -e 's/ /;:;/g')" + function print_usage { echo "usage: $Self " } @@ -215,11 +217,13 @@ ScriptPath=$(echo $0 | sed -e "s#/${Self}##") #echo $ScriptPath ${ScriptPath}/create-boot-floppy -D ${Domain} -G ${GW} -H ${Host} \ - -I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} ${InstCmdLineOpt} + -I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} ${InstCmdLineOpt} \ + --gen-cmd ${SelfCommandLine} ${ScriptPath}/adapt-ks-template -D ${Domain} -G ${GW} -H ${Host} \ -I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} --sec-ip ${SecIP} \ - --sec-nm ${SecNM} ${TemplateOpt} ${KrnlCmdLineOpt} + --sec-nm ${SecNM} ${TemplateOpt} ${KrnlCmdLineOpt} \ + --gen-cmd ${SelfCommandLine} # When this script calls the other two, PublishPath *is* set, so expect # everything of value to be evacuated, and just clean up: -- cgit v1.1