diff options
Diffstat (limited to 'prep-boot-floppy-and-ks-config')
| -rwxr-xr-x | prep-boot-floppy-and-ks-config | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config index 852545c..9befc42 100755 --- a/prep-boot-floppy-and-ks-config +++ b/prep-boot-floppy-and-ks-config @@ -41,6 +41,7 @@ Options: -N, --nameserver Nameserver of target system -P, --publish-path Path where results will be stored -S, --cosmos-hash Hash used by cosmos to verify stuff + --cosmos-tag Tag in ndn-sysconf to reference --template Template to use. This is a relative path, plus the name of the template file. Example: supermicro/SYS-5018D-FN8T/dtn-10g.ks @@ -110,6 +111,10 @@ function parse_commadline { CosmosHash="$2" shift ;; + --cosmos-tag) + CosmosTag="${2}" + shift + ;; --sec-ip) SecIP="${2}" shift @@ -147,7 +152,7 @@ function check_options { # mandatory/needed if [ "x${Domain}" = "x" ] then - echo "${Self}: --domain is mandatory" + echo "${Self}: --domain is mandatory" print_usage exit 1 fi @@ -192,6 +197,10 @@ function check_options { CosmosHash="2f15e1edb02f14607084f167929bc145ed47954d" fi # optional/defaults: + if [ ! "x${CosmosTag}" = "x" ] + then + CosmosTagOpt="--cosmos-tag ${CosmosTag}" + fi if [ "x${Kserver}" = "x" ] then Kserver="109.105.122.84" @@ -222,8 +231,8 @@ ${ScriptPath}/create-boot-floppy -D ${Domain} -G ${GW} -H ${Host} \ ${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} \ - --gen-cmd ${SelfCommandLine} + --sec-nm ${SecNM} ${TemplateOpt} ${KrnlCmdLineOpt} ${CosmosTagOpt} \ + --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: |
