mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
bcachefs format options need to go before device
Move extraFormatArgs in front of device. Else format does fail.
This commit is contained in:
1 parent
24fed06cac
commit
1ae020fe7c
1 file changed
+2
-2
@@ -174,12 +174,12 @@
|
||||
# Format the filesystem with all devices and arguments.
|
||||
if ! blkid -o export "$(blkid -lU ${config.uuid})" | grep -q 'TYPE=bcachefs' >&2 2>&1; then
|
||||
bcachefs format \
|
||||
"$@" \
|
||||
--uuid="${config.uuid}" \
|
||||
${lib.concatStringsSep " \\\n" config.extraFormatArgs} \
|
||||
${
|
||||
lib.optionalString (config.passwordFile != null) ''--encrypted < "${config.passwordFile}"''
|
||||
};
|
||||
} \
|
||||
"$@";
|
||||
fi;
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user