Merge pull request #261692 from josephst/fix-lxc-container-bootloader

nixos/lxc-container: use absolute path for ln in install-lxc-sbin-init.sh
This commit is contained in:
Maciej Krüger 2023-10-22 13:47:14 +02:00 committed by GitHub
commit 49bc1a76e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"];