mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
nixos/grub: Fix extraFiles in subdirectories
This directly copies the systemd-boot logic, which works. `install` with `-D` will create all leading directory components.
This commit is contained in:
parent
894d47f989
commit
f12b216574
@ -699,7 +699,7 @@ in
|
||||
|
||||
boot.loader.grub.extraPrepareConfig =
|
||||
concatStrings (mapAttrsToList (n: v: ''
|
||||
${pkgs.coreutils}/bin/cp -pf "${v}" "@bootPath@/${n}"
|
||||
${pkgs.coreutils}/bin/install -Dp "${v}" "${efi.efiSysMountPoint}/"${escapeShellArg n}
|
||||
'') config.boot.loader.grub.extraFiles);
|
||||
|
||||
assertions = [
|
||||
|
Loading…
Reference in New Issue
Block a user