nixos-module/server/lxc-containers: use switch-to-configuration in ExecReload

This commit is contained in:
Astro 2021-04-06 23:29:28 +02:00
parent 421dba52fc
commit d5f7aecba6
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ in
#! ${pkgs.runtimeShell} -e
SYSTEM=$(dirname $(readlink /var/lib/lxc/$1/rootfs/init))
exec ${pkgs.lxc}/bin/lxc-attach -n $1 $SYSTEM/activate
exec ${pkgs.lxc}/bin/lxc-attach -n $1 $SYSTEM/bin/switch-to-configuration switch
'';
in
"${script} %i";