commit: f5a903581efbe22913e6ac53cb6531eaa1e1ce7a
parent 68ae6354940556e1cfc73216ec4b7227ace55377
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 24 Dec 2025 02:46:41 +0100
articles/Entire Disk Encryption with LUKS and ZFS: compatibility
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/articles/Entire Disk Encryption with LUKS and ZFS.xhtml b/articles/Entire Disk Encryption with LUKS and ZFS.xhtml
@@ -25,7 +25,8 @@ SPDX-License-Identifier: LAL-1.3
<pre><code>cryptsetup --type luks1 --cipher aes-xts-plain64 --key-size 512 --hash sha512 --verify-passphrase luksFormat /dev/sda2
cryptsetup open /dev/sda2 $hostname
-zpool create -f -O compression=lz4 -m none -R /mnt/gentoo $hostname /dev/mapper/$hostname
+# compatibility: lists in /usr/share/zfs/compatibility.d/ and /etc/zfs/compatibility.d
+zpool create -f -O compression=lz4 -o compatibility=grub2-2.12 -m none -R /mnt/gentoo $hostname /dev/mapper/$hostname
zfs create $hostname/ROOT
zfs create -o mountpoint=legacy $hostname/ROOT/gentoo