Containers: Use systemd-nspawn's --keep-unit flag
This gets rid of some redundant scopes/slices.
This commit is contained in:
parent
5b52d17d3f
commit
810680bcae
@ -220,6 +220,7 @@ in
|
|||||||
''}
|
''}
|
||||||
|
|
||||||
exec $runInNetNs ${config.systemd.package}/bin/systemd-nspawn \
|
exec $runInNetNs ${config.systemd.package}/bin/systemd-nspawn \
|
||||||
|
--keep-unit \
|
||||||
-M "$INSTANCE" -D "$root" $extraFlags \
|
-M "$INSTANCE" -D "$root" $extraFlags \
|
||||||
--bind-ro=/nix/store \
|
--bind-ro=/nix/store \
|
||||||
--bind-ro=/nix/var/nix/db \
|
--bind-ro=/nix/var/nix/db \
|
||||||
|
Loading…
Reference in New Issue
Block a user