From 1211e98faf1f37af1de5eb8f3ce0a1c87f71a0e6 Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Thu, 9 Feb 2023 15:50:22 +0100 Subject: [PATCH] NixOS Root on ZFS: Do not bind mount /boot/efi Previously we used a bind mount from /boot/efis/*-part1 to /boot/efi to facilitate bootloader configuration. Recent reports indicate that this bind mount prevents the system from booting. This pull request removes the bind mount. Closes #383. Signed-off-by: Maurice Zhou --- .../Root on ZFS/2-system-installation.rst | 3 --- .../Root on ZFS/3-system-configuration.rst | 18 +++++++++--------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst b/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst index 8b20707..0c3ad69 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst @@ -128,6 +128,3 @@ System Installation 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 $(echo $DISK | cut -f1 -d\ )-part1 /mnt/boot/efi diff --git a/docs/Getting Started/NixOS/Root on ZFS/3-system-configuration.rst b/docs/Getting Started/NixOS/Root on ZFS/3-system-configuration.rst index e696390..e969d0a 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/3-system-configuration.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/3-system-configuration.rst @@ -28,8 +28,10 @@ System Configuration sed -i '/boot.loader/d' /mnt/etc/nixos/configuration.nix sed -i '/services.xserver/d' /mnt/etc/nixos/configuration.nix + tee -a /mnt/etc/nixos/zfs.nix <