This commit is contained in:
Alejandro Angulo 2023-11-02 17:22:32 -07:00
parent 98855cfc94
commit 7c1900262f
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 20 additions and 20 deletions

View file

@ -34,12 +34,12 @@
grub.efiSupport = true;
grub.zfsSupport = true;
grub.extraInstallCommands = ''
export ESP_MIRROR=$(mktemp -d -p /tmp)
cp -r /boot/efis/nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K539085-part1/EFI $ESP_MIRROR
export ESP_MIRROR=$(${pkgs.coreutils}/bin/mktemp -d -p /tmp)
${pkgs.coreutils}/bin/cp -r /boot/efis/nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K539085-part1/EFI $ESP_MIRROR
for i in /boot/efis/*; do
cp -r $ESP_MIRROR/EFI $i
${pkgs.coreutils}/bin/cp -r $ESP_MIRROR/EFI $i
done
rm -rf $ESP_MIRROR
${pkgs.coreutils}/bin/rm -rf $ESP_MIRROR
'';
grub.devices = [
"/dev/disk/by-id/nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K539085"