• Bug#1101553: needrestart: please exclude systemd-nspawn

    From Thomas Liske@21:1/5 to All on Sun Apr 6 12:00:01 2025
    tags 1101553 upstream fixed-upstream
    thanks


    Thanks!


    On 31.03.25 07:33, Raphaël Halimi wrote:
    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,


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)