mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-11-12 17:11:25 +03:00
Cleanly halt VM
This commit is contained in:
parent
af8cc58698
commit
dd7e80fcfa
@ -143,7 +143,8 @@ let
|
||||
export NIX_SSL_CERT_FILE="${pkgsLinux.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
mkdir -p /run/nix-daemon
|
||||
${pkgsLinux.virtsock}/bin/vsudd -inport 2374:unix:/run/nix-daemon/daemon.sock &
|
||||
exec ${pkgsLinux.socat}/bin/socat UNIX-LISTEN:/run/nix-daemon/daemon.sock EXEC:"nix-daemon --stdio"
|
||||
${pkgsLinux.socat}/bin/socat UNIX-LISTEN:/run/nix-daemon/daemon.sock EXEC:"nix-daemon --stdio"
|
||||
exec halt -f
|
||||
'';
|
||||
|
||||
img = "bzImage";
|
||||
@ -154,7 +155,7 @@ let
|
||||
}
|
||||
];
|
||||
};
|
||||
dir = "$HOME/.nixpkgs/linuxkit-builder";
|
||||
dir = "/var/run/nix/linuxkit-builder";
|
||||
linuxkit-nix-daemon = writeScriptBin "linuxkit-nix-daemon" ''
|
||||
#!${bash}/bin/bash
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user