diff options
| author | torben | 2015-04-09 03:49:07 +0200 |
|---|---|---|
| committer | torben | 2015-04-09 03:49:07 +0200 |
| commit | 78549f9fb6f119a31776f3640d0e689954e9baa7 (patch) | |
| tree | cc9631d51c9f317540328a2afdbbebf9a09d4cf6 /testModule | |
| parent | Adding functions library. (diff) | |
| download | systemd-init-78549f9fb6f119a31776f3640d0e689954e9baa7.tar.gz systemd-init-78549f9fb6f119a31776f3640d0e689954e9baa7.tar.xz systemd-init-78549f9fb6f119a31776f3640d0e689954e9baa7.zip | |
Writting cmdline modifier patch.
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 |
