From 9c2f4a04c1b6ad0b54b96c2dee703db2bd3ca89f Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sat, 30 May 2020 17:41:18 -0500 Subject: [PATCH] Ubuntu 20.04: Patch a dependency loop This is from Launchpad bug #1875577. Signed-off-by: Richard Laager --- .../Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index be77539..e1d89a9 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -67,7 +67,10 @@ switch to encrypted swap:: sudo vi /etc/fstab # Remove the swap entry. - sudo apt install --yes cryptsetup + sudo apt install --yes cryptsetup curl patch + + curl https://launchpadlibrarian.net/478315221/2150-fix-systemd-dependency-loops.patch | \ + sed "s|/etc|/lib|;s|\.in$||" | (cd / ; patch -p1) # Replace DISK-partN as appropriate from above: echo swap /dev/disk/by-id/DISK-partN /dev/urandom \ @@ -816,6 +819,19 @@ Step 4: System Configuration addgroup --system lxd addgroup --system sambashare +#. Patch a dependency loop: + + For ZFS native encryption or LUKS:: + + sudo apt install --yes curl patch + + curl https://launchpadlibrarian.net/478315221/2150-fix-systemd-dependency-loops.patch | \ + sed "s|/etc|/lib|;s|\.in$||" | (cd / ; patch -p1) + + This patch is from `Bug #1875577 Encrypted swap won't load on 20.04 with + zfs root + `__. + Step 5: GRUB Installation -------------------------