mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Re-enable systemd-nspawn test
It was disabled inc6953d1ff6
because a recent Nixpkgs bump brought in a new systemd which changed how systemd-nspawn worked. As far as I can tell, the issue was caused by this upstream systemd commit:b71a0192c0
Bind-mounting the host's `/sys` and `/proc` into the container's `/run/host/{sys,proc}` fixes the issue and allows the test to succeed. (cherry picked from commit883092e3f7
)
This commit is contained in:
parent
40a014416b
commit
f3005632c4
2 changed files with 4 additions and 2 deletions
|
@ -73,6 +73,8 @@ runCommand "test"
|
|||
--resolv-conf=off \
|
||||
--bind-ro=/nix/store \
|
||||
--bind=$out \
|
||||
--bind=/proc:/run/host/proc \
|
||||
--bind=/sys:/run/host/sys \
|
||||
--private-network \
|
||||
$toplevel/init
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue