return cmdline
+def network_config() -> list[str]:
+ return [
+ f"--extra-tree={f}:{f}"
+ for f in (
+ "/etc/systemd/network",
+ "/etc/systemd/networkd.conf",
+ "/etc/systemd/networkd.conf.d",
+ "/etc/systemd/resolved.conf",
+ "/etc/systemd/resolved.conf.d",
+ )
+ if Path(f).exists()
+ ]
+
+
def raid_config() -> list[str]:
return [
f"--extra-tree={f}:{f}"
for p in args.profile:
cmdline += ["--profile", p]
- if p == "raid":
+ if p == "network":
+ cmdline += network_config()
+ elif p == "raid":
cmdline += raid_config()
if args.kernel_image:
disabled.
The `lvm` profile enables support for LVM.
+ The `network` profile enables support for network via **systemd-networkd**.
The `pkcs11` profile enables support for PKCS#11.
The `plymouth` profile provides a graphical interface at boot (animation and
password prompt).
disabled.
The `lvm` profile enables support for LVM.
+ The `network` profile enables support for network via **systemd-networkd**.
The `pkcs11` profile enables support for PKCS#11.
The `plymouth` profile provides a graphical interface at boot (animation and
password prompt).