feat: create zfs parent datasets

This commit is contained in:
Yan Minari authored and Jörg Thalheim committed 2023-06-16 13:39:12 +02:00
1 parent 88c99e1d39
commit 44f5dba12d
1 file changed
+2 -1
+2 -1
View File
@@ -41,8 +41,9 @@
# -u prevents mounting newly created datasets, which is
# important to prevent accidental shadowing of mount points
# since (create order != mount order)
# -p creates parents automatically
default = { zpool }: ''
zfs create -u ${zpool}/${config.name} \
zfs create -up ${zpool}/${config.name} \
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)}
'';
};