mirror of
https://github.com/nix-community/disko.git
synced 2026-01-16 03:08:30 +01:00
parent
583bdf4fc6
commit
2791cedcba
1 changed files with 2 additions and 2 deletions
|
|
@ -67,9 +67,9 @@
|
|||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
||||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
|
||||
"''${zfs_devices[@]}"
|
||||
${lib.optionalString ((config.rootFsOptions.mountpoint or "") != "none") ''
|
||||
if [[ $(zfs get -H mounted ${config.name} | cut -f3) == "yes" ]]; then
|
||||
zfs unmount ${config.name}
|
||||
''}
|
||||
fi
|
||||
${lib.concatMapStrings (dataset: dataset._create) (lib.attrValues config.datasets)}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue