From 7b2af8129a760c15de6c3ea62e8384893c1fba89 Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Mon, 3 Jan 2022 01:27:24 +0100 Subject: [PATCH] NixOS: remove unnecessary import service for LUKS bpool Signed-off-by: Maurice Zhou --- .../Root on ZFS/3-optional-configuration.rst | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/docs/Getting Started/NixOS/Root on ZFS/3-optional-configuration.rst b/docs/Getting Started/NixOS/Root on ZFS/3-optional-configuration.rst index a008856..c8ff05c 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/3-optional-configuration.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/3-optional-configuration.rst @@ -177,21 +177,6 @@ root pool will be replaced by keyfile, embedded in initrd. -o keyformat=raw \ rpool_$INST_UUID/$INST_ID -#. Import encrypted boot pool from ``/dev/mapper``:: - - tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <<-'EOF' - systemd.services.zfs-import-bpool-mapper = { - wantedBy = [ "zfs-import.target" ]; - description = "Import encrypted boot pool"; - after = [ "cryptsetup.target" ]; - before = [ "boot.mount" ]; - serviceConfig = { - Type = "oneshot"; - ExecStart = ''${pkgs.zfs}/bin/zpool import -aNd /dev/mapper''; - }; - }; - EOF - #. Enable GRUB cryptodisk:: tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <