]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-functions: add ip_params_for_remote_addr() helper
authorMartin Wilck <mwilck@suse.com>
Fri, 10 Jul 2020 22:15:34 +0000 (00:15 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Tue, 4 Aug 2020 06:43:32 +0000 (08:43 +0200)
commitceca74ccc397795db68ca6ffbe49d65af2178a50
tree303f3bcc125bbffeb52517f4574b56d989e772d8
parent019610af266bcaef711715266bc0ca4be1044150
dracut-functions: add ip_params_for_remote_addr() helper

This helper function takes a remote IP address, and tries to
determine the dracut command line arguments ip= and ifname= that
will make this remote address reachable during boot.

Functionality was taken from the module-setup.sh scripts of 95iscsi and 95nfs,
cleaned up and fixed some issues in particular with statically configured
networks, where the old code would print the unsupported string
"$ifname:static".
dracut-functions.sh