diff options
Diffstat (limited to 'testModule/parse-ip.sh')
| -rw-r--r-- | testModule/parse-ip.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/testModule/parse-ip.sh b/testModule/parse-ip.sh index 3349787b..5731242f 100644 --- a/testModule/parse-ip.sh +++ b/testModule/parse-ip.sh @@ -1,12 +1,11 @@ # 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 ...........................' + +source /usr/lib/test-library.sh for parameter in $(getargs ip=); do local temp="$parameter:" @@ -22,8 +21,10 @@ for parameter in $(getargs ip=); do [ -n "$4" ] && net_mask=$4 warn "PXE given net configuration: ip: $ip server_ip: $server_ip gateway_ip: $gateway_ip net_mask: $net_mask" - # TODO - replace_cmd ip "$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" + local final_dracut_ip_config="$ip::$gateway_ip:$net_mask:dracut_test_client:enp0s3:none" + warn "Final dracut ip config: $final_dracut_ip_config" + #final_dracut_ip_config="enp0s3:dhcp" + replace_cmd ip "$final_dracut_ip_config" done # NOTE: Doesn't work since dracuts needed version of mount doesn't support |
