From ebdc11258f0dea757aaa4f30f2ed87c94a632add Mon Sep 17 00:00:00 2001 From: "q5sys (JT)" Date: Thu, 2 Jan 2020 18:18:42 -0500 Subject: [PATCH] Make /etc a separate dataset For ease of fixing mis-configurations and other events leading to potential system corruption, the /etc dir would benefit from being covered by their own unique snapshots so that any problems can be easily rolled back atomically without affecting the rest of the filesystem --- src-sh/void-install-zfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-sh/void-install-zfs.sh b/src-sh/void-install-zfs.sh index 7a9bdef..83aca61 100755 --- a/src-sh/void-install-zfs.sh +++ b/src-sh/void-install-zfs.sh @@ -406,7 +406,7 @@ exit_err $? "Could not import the new pool at ${MNT}" zfs mount ${ZPOOL}/ROOT/${INITBE} exit_err $? "Count not mount the root ZFS dataset" -datasets="home:usr/home vlog:var/log vtmp:var/tmp docker:var/lib/docker" +datasets="home:usr/home vlog:var/log vtmp:var/tmp docker:var/lib/docker etc:etc" for ds in ${datasets} do echo "Creating Dataset: ${ds}" @@ -414,7 +414,7 @@ do exit_err $? "Could not create dataset: ${ds}" done -dirs="boot/grub boot/efi dev etc proc run sys" +dirs="boot/grub boot/efi dev proc run sys" for dir in ${dirs} do mkdir -p ${MNT}/${dir}