mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
Merge pull request #9008 from cole-h/re-enable-nspawn-test
Re-enable systemd-nspawn test
This commit is contained in:
commit
3ce793d3e9
2 changed files with 4 additions and 2 deletions
|
@ -56,8 +56,8 @@
|
||||||
host.fail("nix build -v --auto-allocate-uids --no-sandbox -L --offline --impure --file ${./id-test.nix} --argstr name id-test-6 --arg uidRange true")
|
host.fail("nix build -v --auto-allocate-uids --no-sandbox -L --offline --impure --file ${./id-test.nix} --argstr name id-test-6 --arg uidRange true")
|
||||||
|
|
||||||
# Run systemd-nspawn in a Nix build.
|
# Run systemd-nspawn in a Nix build.
|
||||||
#host.succeed("nix build -v --auto-allocate-uids --sandbox -L --offline --impure --file ${./systemd-nspawn.nix} --argstr nixpkgs ${nixpkgs}")
|
host.succeed("nix build -v --auto-allocate-uids --sandbox -L --offline --impure --file ${./systemd-nspawn.nix} --argstr nixpkgs ${nixpkgs}")
|
||||||
#host.succeed("[[ $(cat ./result/msg) = 'Hello World' ]]")
|
host.succeed("[[ $(cat ./result/msg) = 'Hello World' ]]")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,8 @@ runCommand "test"
|
||||||
--resolv-conf=off \
|
--resolv-conf=off \
|
||||||
--bind-ro=/nix/store \
|
--bind-ro=/nix/store \
|
||||||
--bind=$out \
|
--bind=$out \
|
||||||
|
--bind=/proc:/run/host/proc \
|
||||||
|
--bind=/sys:/run/host/sys \
|
||||||
--private-network \
|
--private-network \
|
||||||
$toplevel/init
|
$toplevel/init
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue