From b40c7432513ed005449a7c76a0e2bf674fbd2e60 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Wed, 26 Sep 2018 11:26:41 +0300 Subject: [PATCH] /tmp additions --- Debian-Stretch-Root-on-ZFS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Debian-Stretch-Root-on-ZFS.md b/Debian-Stretch-Root-on-ZFS.md index 81d68fd..5e883b5 100644 --- a/Debian-Stretch-Root-on-ZFS.md +++ b/Debian-Stretch-Root-on-ZFS.md @@ -146,6 +146,20 @@ Now you can create datasets: The `debootstrap` command leaves the new system in an unconfigured state. An alternative to using `debootstrap` is to copy the entirety of a working system into the new ZFS root. +3.5 create /tmp **(optional)** + +There are 2 ways - use ondisk /tmp as a dataset, or as tmpfs: +- as dataset: +``` +# zfs create -o com.sun:auto-snapshot=false -o exec=on rpool/var/tmp +``` + +- as TMPFS: +``` +# cp /usr/share/systemd/tmp.mount /etc/systemd/system/ +# systemctl enable tmp.mount +``` + ## Step 4: System Configuration 4.1 Configure the hostname (change `HOSTNAME` to the desired hostname).