aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/s01.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/s01.sh')
-rw-r--r--scripts/s01.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/s01.sh b/scripts/s01.sh
index 9dcdd94..5c64afb 100644
--- a/scripts/s01.sh
+++ b/scripts/s01.sh
@@ -54,6 +54,8 @@ zfs set dedup=off $POOL
zfs set compression=off $POOL
zfs set atime=off $POOL
zfs set mountpoint=none $POOL
+zfs set acltype=posixacl $POOL
+zfs set xattr=sa $POOL
# Create Dataset System Root
zfs create -o mountpoint=none $POOL/system
@@ -72,11 +74,16 @@ zfs create -o mountpoint=/data $POOL/data
zfs create -o mountpoint=/srv $POOL/services
zfs create -o mountpoint=/usr/local/projects -o compression=lz4 $POOL/projects
+## Export / Import ( '-d ..' also changes the dev names )
+##zpool export $POOL
+##zpool import -d /dev/disk/by-id -R /mnt $POOL
+
##
## Prepare ROOT
##
-mkdir -p /mnt
+## /mnt already must exist as the just created zfs fs
+##mkdir -p /mnt
(cd /mnt && \
tar --xattrs -xapf $STRAPBALL