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