]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network-manager): write DHCP filename option to dhcpopts file
authorBeniamino Galvani <bgalvani@redhat.com>
Mon, 9 Aug 2021 07:01:32 +0000 (09:01 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 10 Aug 2021 15:16:48 +0000 (15:16 +0000)
Anaconda parses the 'filename' variable [1] set in /tmp/net.$netif.dhcpopts to
determine the name of the kickstart file to use.

[1] https://github.com/rhinstaller/anaconda/blob/anaconda-35.21-1/dracut/fetch-kickstart-net.sh#L31-L34

modules.d/35network-manager/nm-run.sh

index 28ad4aaa5cd043979bb6c56ec6ce8b180f242924..8d6942c9a8fb72f039cdb98943854fd3f3d8643d 100755 (executable)
@@ -56,6 +56,7 @@ kf_parse() {
 dhcpopts_create() {
     kf_parse root-path new_root_path < "$1"
     kf_parse next-server new_next_server < "$1"
+    kf_parse dhcp-bootfile filename < "$1"
 }
 
 for _i in /sys/class/net/*; do