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