]> git.ipfire.org Git - thirdparty/systemd.git/commit
network-generator: support BOOTIF= and rd.bootif=0 options 41028/head
authorNick Rosbrook <enr0n@ubuntu.com>
Tue, 24 Feb 2026 19:05:05 +0000 (14:05 -0500)
committerNick Rosbrook <enr0n@ubuntu.com>
Mon, 30 Mar 2026 14:48:55 +0000 (10:48 -0400)
commitcceddc41fd2511db52456835f24ea7e6381fab58
tree796fa8595e80e63537836913cd042f500e601132
parentcaeec0de6d460c1c870dc7a981c46813ceca1d57
network-generator: support BOOTIF= and rd.bootif=0 options

The network generator currently supports many of the options described
by dracut.cmdline(7), but not everything.

This commit adds support for the BOOTIF= option (and the related
rd.bootif= option) used in PXE setups.

This is implemented by treating BOOTIF as a special name/placeholder
when used as an interface name, and expecting a MAC address to be set in
the BOOTIF= parameter. The resulting .network file then uses MACAddress=
in the [Match] section, instead of Name=.
man/systemd-network-generator.service.xml
src/network/generator/network-generator-main.c
src/network/generator/network-generator.c
src/network/generator/network-generator.h
src/network/generator/test-network-generator.c