summaryrefslogtreecommitdiffstats
path: root/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-05-02 15:44:55 +0300
committerK900 <me@0upti.me>2022-05-02 15:44:55 +0300
commit5a2f238b9a55c425488bbcb1676f64e3c3f55942 (patch)
tree0cce60948e316fad95c15b261d0b74749f64c79b /nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
parent193eb32e3bdd225b4a775ce778d5b68ea8457506 (diff)
systemd-boot: use mktemp from coreutils in installer
People running nixos-install in non-NixOS environments occasionally run into the mktemp builtin not being loaded into bash (yes, even NixOS' bash). Rather than try and figure out why exactly that is happening, just use a known good mktemp from coreutils.
Diffstat (limited to 'nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix')
-rw-r--r--nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
index c07567ec82ea..1a1dcaea9c89 100644
--- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
+++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
@@ -33,7 +33,7 @@ let
netbootxyz = if cfg.netbootxyz.enable then pkgs.netbootxyz-efi else "";
copyExtraFiles = pkgs.writeShellScript "copy-extra-files" ''
- empty_file=$(mktemp)
+ empty_file=$(${pkgs.coreutils}/bin/mktemp)
${concatStrings (mapAttrsToList (n: v: ''
${pkgs.coreutils}/bin/install -Dp "${v}" "${efi.efiSysMountPoint}/"${escapeShellArg n}