mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
feat: create zfs parent datasets
This commit is contained in:
1 parent
88c99e1d39
commit
44f5dba12d
1 file changed
+2
-1
@@ -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)}
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user