]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Setup/Fedora.pm
enable systemd-networkd per preset in fedora 37+
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 18 Nov 2022 09:36:42 +0000 (10:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Nov 2022 11:56:55 +0000 (12:56 +0100)
commite652eaf862f6759314156502f30e3e822af1e9f7
tree525d289a3fb3671c3a81f6ae8cf42c910c638460
parent9f54901be163c1cdef88d1ddb6cd88d5da503679
enable systemd-networkd per preset in fedora 37+

While the template has systemd-networkd enabled, the lack of
/etc/machine-id causes systemd to revert to its "preset",
where now in
  /usr/lib/systemd/system-preset/90-default.preset
fedora disables systemd-networkd in favor of NetworkManager.

Without this patch, the first boot of a fresh fedora 37
container would disable networking requiring a
`systemctl enable systemd-networkd` from within the
container once, after which it sticks around (until
/etc/machine-id is deleted).

This patch provides an
`/etc/systemd/system-preset/00-pve.preset` file to keep
systemd-networkd enabled via the `template_fixup` hook.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Setup/Fedora.pm