diff options
Diffstat (limited to 'testModule')
| -rw-r--r-- | testModule/module-setup.sh | 2 | ||||
| -rw-r--r-- | testModule/parse-ip.sh | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/testModule/module-setup.sh b/testModule/module-setup.sh index 8b35d52a..0f43268b 100644 --- a/testModule/module-setup.sh +++ b/testModule/module-setup.sh @@ -11,7 +11,7 @@ depends() { install() { # Loads globally needed useful functions or fixes some native dracut ones. - inst_hook cmdline 10 "$moddir/library.sh" + inst_simple "$moddir/library.sh" /usr/lib/test-library.sh # NOTE: Priority has to be greater than the network cmdline parsing hooks # since we have to modify the some kernel parameter before. inst_hook cmdline 100 "$moddir/parse-ip.sh" diff --git a/testModule/parse-ip.sh b/testModule/parse-ip.sh index 2f720c57..b381c573 100644 --- a/testModule/parse-ip.sh +++ b/testModule/parse-ip.sh @@ -1,6 +1,13 @@ # Converts ip configuration format given by the pxe pre boot provider to a # dracut compatible static ip configuration. +source /usr/lib/test-library.sh + +# TODO +warn 'LOAD ...........................' +warn 'LOAD ...........................' +warn 'LOAD ...........................' + for parameter in $(getargs ip=); do local temp="$parameter:" set -- @@ -17,7 +24,7 @@ for parameter in $(getargs ip=); do warn "PXE given net configuration: ip: $ip server_ip: $server_ip broadcast_ip: $broadcast_ip net_mask: $net_mask" # TODO local gateway_ip="$broadcast_ip" - repace_cmd test "$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" + replace_cmd ip "$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" done # NOTE: Doesn't work since dracuts needed version of mount doesn't support |
