mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
feat: create zfs parent datasets
This commit is contained in:
parent
88c99e1d39
commit
44f5dba12d
1 changed files with 2 additions and 1 deletions
|
|
@ -41,8 +41,9 @@
|
||||||
# -u prevents mounting newly created datasets, which is
|
# -u prevents mounting newly created datasets, which is
|
||||||
# important to prevent accidental shadowing of mount points
|
# important to prevent accidental shadowing of mount points
|
||||||
# since (create order != mount order)
|
# since (create order != mount order)
|
||||||
|
# -p creates parents automatically
|
||||||
default = { zpool }: ''
|
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)}
|
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue