diff options
author | Sander van der Burg <svanderburg@gmail.com> | 2021-03-15 19:34:09 +0100 |
---|---|---|
committer | Sander van der Burg <sander.van.der.burg@mendix.com> | 2021-03-22 20:41:12 +0100 |
commit | 5c8ed06fc9dbdf92681101d4fd91c690293ae007 (patch) | |
tree | 477207c77b4fc66d62c2aec2218011edd9fd72a1 /nixos/modules/system/boot/stage-2-init.sh | |
parent | f6092fe869272327a95d539d78ea8ebe15c34610 (diff) | |
download | nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.gz nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.bz2 nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.lz nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.xz nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.zst nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.zip |
systemd: allow custom unit folders to be configured with SYSTEMD_UNIT_PATH
Diffstat (limited to 'nixos/modules/system/boot/stage-2-init.sh')
-rw-r--r-- | nixos/modules/system/boot/stage-2-init.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh index 936077b9df1..50ee0b8841e 100644 --- a/nixos/modules/system/boot/stage-2-init.sh +++ b/nixos/modules/system/boot/stage-2-init.sh @@ -167,6 +167,7 @@ exec {logOutFd}>&- {logErrFd}>&- # Start systemd. echo "starting systemd..." + PATH=/run/current-system/systemd/lib/systemd:@fsPackagesPath@ \ - LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive \ + LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive @systemdUnitPathEnvVar@ \ exec @systemdExecutable@ |