From 66d4bad26fdecf43d6622cc07b8c0c76c6252f91 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 27 Sep 2019 01:11:49 -0500 Subject: [PATCH] Ubuntu: Slightly improve the LUKS/mounting steps --- Ubuntu-18.04-Root-on-ZFS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index 2b85354..0b309d0 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -656,12 +656,13 @@ Store that backup somewhere safe (e.g. cloud storage). It is protected by your L Go through [Step 1: Prepare The Install Environment](#step-1-prepare-the-install-environment). -This will automatically import your pool. Export it and re-import it to get the mounts right: +For LUKS, first unlock the disk(s): - For LUKS, first unlock the disk(s): # cryptsetup luksOpen /dev/disk/by-id/scsi-SATA_disk1-part4 luks1 Repeat for additional disks, if this is a mirror or raidz topology. +Mount everything correctly: + # zpool export -a # zpool import -N -R /mnt rpool # zpool import -N -R /mnt bpool