Le 29/03/2025 à 19:39, Thomas Liske a écrit :
yes we should add it. Do you like to open an upstream PR? If not, could
you please provide your working config snipped? Just asking because I
have no experience with systemd-nspawn so far, thanks!
The PR would just be one line... Just add :
qr(^systemd-nspawn) } = 0,
...in the "misc" block, near the lxc line. This will prevent to restart
the "systemd-nspawn@..." services which represent a container each.
systemd-machined will be restarted nonetheless, and re-register the
still-running containers.
The contents of my configuration snippet is as follows:
-----%<-----
# Don't restart systemd-nspawn containers
$nrconf{override_rc}->{ qr(^systemd-nspawn) } = 0;
----->%-----
Regards,
--
Raphaël Halimi