nixos/lxc-container: use absolute path for ln in install-lxc-sbin-init.sh
Recent change to nixos-rebuild (https://github.com/NixOS/nixpkgs/pull/258571) adds systemd-run, which brings with it a cleaner environment (ie $PATH not available). Workaround: use absolute path for ln to avoid command-not-found error
This commit is contained in:
parent
cb44be3b01
commit
d156ab6c9c
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ in {
|
|||
|
||||
system.build.installBootLoader = pkgs.writeScript "install-lxd-sbin-init.sh" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
ln -fs "$1/init" /sbin/init
|
||||
${pkgs.coreutils}/bin/ln -fs "$1/init" /sbin/init
|
||||
'';
|
||||
|
||||
systemd.additionalUpstreamSystemUnits = lib.mkIf cfg.nestedContainer ["systemd-udev-trigger.service"];
|
||||
|
|
Loading…
Reference in a new issue