mirror of
https://github.com/nix-community/disko
synced 2024-09-20 05:51:54 +00:00
commit
e0179917d8
3 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,7 @@ defaults:
|
|||
actions:
|
||||
queue:
|
||||
allow_merging_configuration_change: true
|
||||
method: rebase
|
||||
pull_request_rules:
|
||||
- name: merge using the merge queue
|
||||
conditions:
|
||||
|
|
|
@ -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)}
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
inherit config options;
|
||||
default = _: ''
|
||||
readarray -t zfs_devices < <(cat "$disko_devices_dir"/zfs_${config.name})
|
||||
zpool create ${config.name} \
|
||||
zpool create -f ${config.name} \
|
||||
-R ${config.mountRoot} ${config.mode} \
|
||||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
||||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
|
||||
|
|
Loading…
Reference in a new issue