From d4ffbd73a8b4f7ddc8f082404943aaf17c0b7544 Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Wed, 1 Dec 2021 14:53:41 +0100 Subject: [PATCH] NixOS: fix mirrored EFI system partition issue Signed-off-by: Maurice Zhou --- .../Root on ZFS/2-system-configuration.rst | 24 ++++++++++--------- .../Root on ZFS/3-optional-configuration.rst | 3 +++ .../Root on ZFS/4-system-installation.rst | 1 + 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst b/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst index c603b3c..d603554 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst @@ -227,6 +227,8 @@ System Configuration mkdir -p /mnt/boot/efis/${i##*/}-part1 mount -t vfat ${i}-part1 /mnt/boot/efis/${i##*/}-part1 done + mkdir -p /mnt/boot/efi + mount -t vfat ${INST_PRIMARY_DISK}-part1 /mnt/boot/efi #. Create optional user data datasets to omit data from rollback:: @@ -321,7 +323,7 @@ System Configuration #. Configure GRUB boot loader for both legacy boot and UEFI:: sed -i '/boot.loader/d' /mnt/etc/nixos/configuration.nix - tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <>/mnt/etc/nixos/${INST_CONFIG_FILE} done - tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <>/mnt/etc/nixos/${INST_CONFIG_FILE} - done tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <