From c7722c835c525d513d3a2df41222351e4b146dc4 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 27 Sep 2019 00:28:31 -0500 Subject: [PATCH] Debian: Add steps to patch zfs-initramfs The patch fixes zfs-initramfs's Plymouth support for prompting for encryption passphrases. It is included in 0.8.2, so by the time of the next package update, the patch should not need to be reapplied. --- Debian-Buster-Encrypted-Root-on-ZFS.md | 18 ++++++++++++++++++ Debian-Buster-Root-on-ZFS.md | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Debian-Buster-Encrypted-Root-on-ZFS.md b/Debian-Buster-Encrypted-Root-on-ZFS.md index 62bc6d5..836be8b 100644 --- a/Debian-Buster-Encrypted-Root-on-ZFS.md +++ b/Debian-Buster-Encrypted-Root-on-ZFS.md @@ -17,6 +17,24 @@ You should set a root password before upgrading: # passwd +Apply updates: + + # apt update + # apt dist-upgrade + +Patch zfs-initramfs: + + # apt install curl + # curl https://github.com/zfsonlinux/zfs/commit/f335b8f.patch | \ + patch /usr/share/initramfs-tools/scripts/zfs + # update-initramfs -u -k all + +The patch fixes zfs-initramfs's Plymouth support for prompting for encryption passphrases. It is included in 0.8.2, so by the time of the next package update, the patch should not need to be reapplied. + +Reboot: + + # reboot + If the bpool fails to import, then enter the rescue shell (which requires a root password) and run: # zpool import -f bpool diff --git a/Debian-Buster-Root-on-ZFS.md b/Debian-Buster-Root-on-ZFS.md index e837841..d16c878 100644 --- a/Debian-Buster-Root-on-ZFS.md +++ b/Debian-Buster-Root-on-ZFS.md @@ -309,8 +309,12 @@ Even if you prefer a non-English system language, always ensure that `en_US.UTF- 4.6 Install ZFS in the chroot environment for the new system: - # apt install --yes dpkg-dev linux-headers-amd64 linux-image-amd64 + # apt install --yes curl dpkg-dev linux-headers-amd64 linux-image-amd64 # apt install --yes zfs-initramfs + # curl https://github.com/zfsonlinux/zfs/commit/f335b8f.patch | \ + patch /usr/share/initramfs-tools/scripts/zfs + +The patch fixes zfs-initramfs's Plymouth support for prompting for encryption passphrases. It is included in 0.8.2, so by the time of the next package update, the patch should not need to be reapplied. 4.7 Install GRUB