From 8d3a05a5c1725ae69ae5e0d7e4c0b640e1fbe46d Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Wed, 10 Apr 2019 08:57:09 -0500 Subject: [PATCH] Ubuntu: Reorder system groups step This is to allow me to reduce the delta with Debian. By putting this at the end, I can simply omit it on Debian, which avoids needing to renumber all the following steps in that section. --- Ubuntu-18.04-Root-on-ZFS.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index b40937c..d0fa2cf 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -339,16 +339,11 @@ Install GRUB to the disk(s), not the partition(s). * The `-s 1` for `mkdosfs` is only necessary for drives which present 4 KiB logical sectors (“4Kn” drives) to meet the minimum cluster size (given the partition size of 512 MiB) for FAT32. It also works fine on drives which present 512 B sectors. -4.9 Setup system groups: - - # addgroup --system lpadmin - # addgroup --system sambashare - -4.10 Set a root password +4.9 Set a root password # passwd -4.11 Enable importing bpool +4.10 Enable importing bpool This ensures that `bpool` is always imported, regardless of whether `/etc/zfs/zpool.cache` exists, whether it is in the cachefile or not, or whether `zfs-import-scan.service` is enabled. ``` @@ -368,13 +363,19 @@ This ensures that `bpool` is always imported, regardless of whether `/etc/zfs/zp EOF # systemctl enable zfs-import-bpool.service ``` -4.12 Optional (but recommended): Mount a tmpfs to /tmp + +4.11 Optional (but recommended): Mount a tmpfs to /tmp If you chose to create a `/tmp` dataset above, skip this step, as they are mutually exclusive choices. Otherwise, you can put `/tmp` on a tmpfs (RAM filesystem) by enabling the `tmp.mount` unit. # cp /usr/share/systemd/tmp.mount /etc/systemd/system/ # systemctl enable tmp.mount +4.12 Setup system groups: + + # addgroup --system lpadmin + # addgroup --system sambashare + ## Step 5: GRUB Installation 5.1 Verify that the ZFS boot filesystem is recognized: