diff options
author | Jon Clausen <jac@nordu.net> | 2018-08-06 08:45:00 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-08-06 08:45:00 +0200 |
commit | 2da70fccaeb37b7059bf1c5719f07cbae3097803 (patch) | |
tree | 7398c7ec37c73c3d3cc09b0223f44380f8dbfe1a /prep-boot-floppy-and-ks-config | |
parent | c49de8ed00f381bb40db9b8d0b3d042f5efa123e (diff) |
--boot-dev and --root-dev options
Diffstat (limited to 'prep-boot-floppy-and-ks-config')
-rwxr-xr-x | prep-boot-floppy-and-ks-config | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config index 9befc42..b8d1aef 100755 --- a/prep-boot-floppy-and-ks-config +++ b/prep-boot-floppy-and-ks-config @@ -41,6 +41,8 @@ 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 + --boot-dev device to install bootloader on + --root-dev device to use for system --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: @@ -111,6 +113,14 @@ function parse_commadline { CosmosHash="$2" shift ;; + --boot-dev) + BootDev="${2}" + shift + ;; + --root-dev) + RootDev="${2}" + shift + ;; --cosmos-tag) CosmosTag="${2}" shift @@ -197,6 +207,14 @@ function check_options { CosmosHash="2f15e1edb02f14607084f167929bc145ed47954d" fi # optional/defaults: + if [ "x${BootDev}" = "x" ] + then + BootDev="sda" + fi + if [ "x${RootDev}" = "x" ] + then + RootDev="sda" + fi if [ ! "x${CosmosTag}" = "x" ] then CosmosTagOpt="--cosmos-tag ${CosmosTag}" @@ -232,7 +250,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} ${CosmosTagOpt} \ - --gen-cmd ${SelfCommandLine} + --gen-cmd ${SelfCommandLine} --boot-dev "${BootDev}" \ + --root-dev "${RootDev}" # When this script calls the other two, PublishPath *is* set, so expect # everything of value to be evacuated, and just clean up: |