mirror of
https://github.com/nix-community/linuxkit-nix.git
synced 2024-09-11 11:55:24 +03:00
Add the builder's plist as a gcroot to avoid it being GCd
This commit is contained in:
parent
5fc2efc84d
commit
0b31642b0d
@ -76,6 +76,9 @@ if [ ! -f "$DIR/server-config.tar" ]; then
|
||||
)
|
||||
fi
|
||||
|
||||
|
||||
nix-store --add-root "$DIR/gcroot" --indirect --realize "$PLIST"
|
||||
|
||||
launchctl unload ~/Library/LaunchAgents/org.nix-community.linuxkit-builder.plist 2> /dev/null || true
|
||||
chmod 660 ~/Library/LaunchAgents/org.nix-community.linuxkit-builder.plist 2> /dev/null || true
|
||||
cp "$PLIST" ~/Library/LaunchAgents/org.nix-community.linuxkit-builder.plist
|
||||
|
@ -245,7 +245,7 @@ in buildEnv {
|
||||
name = "linuxkit-builder";
|
||||
paths = [
|
||||
(shellcheckedScriptBin "nix-linuxkit-configure" ./configure.sh {
|
||||
inherit bash hostPort coreutils openssh gnutar gnugrep ed plist;
|
||||
inherit bash hostPort coreutils openssh gnutar gnugrep ed plist nix;
|
||||
example_path = ./example.nix;
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user