From ce8163046cdb882f65c5d0e6d5dc9ed593e6bf7a Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Fri, 15 Feb 2019 05:03:54 -0600 Subject: [PATCH] Ubuntu/Debian: List /opt and /usr/local These might be of interest to people, just like /srv. Also, /usr/local requires an extra step for /usr (if you want to keep the 1:1 association between dataset and filesystem paths). --- Debian-Stretch-Root-on-ZFS.md | 7 +++++++ Ubuntu-18.04-Root-on-ZFS.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Debian-Stretch-Root-on-ZFS.md b/Debian-Stretch-Root-on-ZFS.md index 36458fc..751dc48 100644 --- a/Debian-Stretch-Root-on-ZFS.md +++ b/Debian-Stretch-Root-on-ZFS.md @@ -121,9 +121,16 @@ Properties are inherited, if you want to create (for example) `rpool/var/lib` yo # zfs create rpool/var/spool # zfs create -o com.sun:auto-snapshot=false -o exec=on rpool/var/tmp + If you use /opt on this system: + # zfs create rpool/opt + If you use /srv on this system: # zfs create rpool/srv + If you use /usr/local on this system: + # zfs create -o canmount=off rpool/usr + # zfs create rpool/usr/local + If this system will have games installed: # zfs create rpool/var/games diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index 965635c..a00f236 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -142,9 +142,16 @@ With ZFS, it is not normally necessary to use a mount command (either `mount` or # zfs create rpool/var/spool # zfs create -o com.sun:auto-snapshot=false -o exec=on rpool/var/tmp + If you use /opt on this system: + # zfs create rpool/opt + If you use /srv on this system: # zfs create rpool/srv + If you use /usr/local on this system: + # zfs create -o canmount=off rpool/usr + # zfs create rpool/usr/local + If this system will have games installed: # zfs create rpool/var/games