From 8105d010fed0da7a59a02a2cc89e06f8c05e398a Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 29 Apr 2022 16:44:23 -0500 Subject: [PATCH] Ubuntu 22.04 / Debian: Deprecate zsys Ubuntu almost removed support for ZFS from the installer, and zsys is on life support: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1966773 https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1968150 I plan to rework the Ubuntu 22.04 instructions to be closer to those for Debian Buster. This will be straightforward, but I need to actually test the resulting instructions before pushing that change. Signed-off-by: Richard Laager --- .../Debian/Debian Bullseye Root on ZFS.rst | 6 ++- .../Debian/Debian Buster Root on ZFS.rst | 6 ++- .../Ubuntu/Ubuntu 22.04 Root on ZFS.rst | 46 +++---------------- 3 files changed, 14 insertions(+), 44 deletions(-) diff --git a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst index 76cb666..1f28645 100644 --- a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst @@ -425,8 +425,10 @@ Step 3: System Installation On Solaris systems, the root filesystem is cloned and the suffix is incremented for major system changes through ``pkg image-update`` or - ``beadm``. Similar functionality has been implemented in Ubuntu 20.04 with - the ``zsys`` tool, though its dataset layout is more complicated. Even + ``beadm``. Similar functionality was implemented in Ubuntu with the + ``zsys`` tool, though its dataset layout is more complicated, and ``zsys`` + `is on life support + `__. Even without such a tool, the `rpool/ROOT` and `bpool/BOOT` containers can still be used for manually created clones. That said, this HOWTO assumes a single filesystem for ``/boot`` for simplicity. diff --git a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst index 5ac6fb9..5dd470d 100644 --- a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst @@ -435,8 +435,10 @@ Step 3: System Installation On Solaris systems, the root filesystem is cloned and the suffix is incremented for major system changes through ``pkg image-update`` or - ``beadm``. Similar functionality has been implemented in Ubuntu 20.04 with - the ``zsys`` tool, though its dataset layout is more complicated. Even + ``beadm``. Similar functionality was implemented in Ubuntu with the + ``zsys`` tool, though its dataset layout is more complicated, and ``zsys`` + `is on life support + `__. Even without such a tool, the `rpool/ROOT` and `bpool/BOOT` containers can still be used for manually created clones. That said, this HOWTO assumes a single filesystem for ``/boot`` for simplicity. diff --git a/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst index baefe25..ca7f9f3 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst @@ -12,46 +12,12 @@ Overview Ubuntu Installer ~~~~~~~~~~~~~~~~ -The Ubuntu installer has `support for root-on-ZFS -`__. -This HOWTO produces nearly identical results as the Ubuntu installer because of -`bidirectional collaboration -`__. - -If you want a single-disk, unencrypted, desktop install, use the installer. It -is far easier and faster than doing everything by hand. - -If you want a ZFS native encrypted, desktop install, you can `trivially edit -the installer -`__. -The ``-o recordsize=1M`` there is unrelated to encryption; omit that unless -you understand it. Make sure to use a password that is at least 8 characters -or this hack will crash the installer. Additionally, once the system is -installed, you should switch to encrypted swap:: - - swapon -v - # Note the device, including the partition. - - ls -l /dev/disk/by-id/ - # Find the by-id name of the disk. - - sudo swapoff -a - sudo vi /etc/fstab - # Remove the swap entry. - - sudo apt install --yes cryptsetup - - # Replace DISK-partN as appropriate from above: - echo swap /dev/disk/by-id/DISK-partN /dev/urandom \ - swap,cipher=aes-xts-plain64:sha256,size=512 | sudo tee -a /etc/crypttab - echo /dev/mapper/swap none swap defaults 0 0 | sudo tee -a /etc/fstab - -`Hopefully the installer will gain encryption support in -the future -`__. - -If you want to setup a mirror or raidz topology, use LUKS encryption, and/or -install a server (no desktop GUI), use this HOWTO. +The Ubuntu installer still has ZFS support, but `it was almost removed for +22.04 `__ +and `it no longer installs zsys +`__. At +the moment, this HOWTO still uses zsys, but that will be probably be removed +in the near future. Raspberry Pi ~~~~~~~~~~~~