I remove network manager as the renderer in the YAML.
I'll have to try the 'optional' thing, but since it is on a per-device thing, looks like we have to list each unused ethernet device to add it.
But since I reboot very seldom, boot time has not really be a concern to me. Anything under 60 sec is fine for a server.
Code:
$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
graphical.target @14.946s
└─multi-user.target @14.946s
└─lxd-containers.service @6.074s +5.730s
└─lxd.service @10.911s +32.149s
└─network-online.target @10.908s
└─network.target @10.899s
└─networking.service @5.685s +5.213s
└─apparmor.service @5.388s +262ms
└─local-fs.target @5.356s
└─run-user-1000.mount @22.287s
└─swap.target @1.863s
└─dev-hadar\x2dvg-swap_1.swap @1.739s +117ms
└─dev-hadar\x2dvg-swap_1.device @1.692s