diff options
Diffstat (limited to 'prep-boot-floppy-and-ks-config')
-rwxr-xr-x | prep-boot-floppy-and-ks-config | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config index 61dbd64..3759e17 100755 --- a/prep-boot-floppy-and-ks-config +++ b/prep-boot-floppy-and-ks-config @@ -39,6 +39,9 @@ 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 + --template Template to use. This is a relative path, plus the + name of the template file. Example: + supermicro/SYS-5018D-FN8T/dtn-10g.ks --sec-ip IP of secondary interface --sec-nm Netmask of secondary interface -h, --help this @@ -103,6 +106,10 @@ function parse_commadline { SecNM="${2}" shift ;; + --template) + TemplateOpt="-T ${2}" + shift + ;; *) echo "what do you mean \"$1\"?" exit 1 @@ -190,7 +197,7 @@ ${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} + --sec-nm ${SecNM} ${TemplateOpt} # When this script calls the other two, PublishPath *is* set, so expect # everything of value to be evacuated, and just clean up: |