bcachefs format options need to go before device (#1270)

Move extraFormatArgs in front of device. Else format does fail.
This commit is contained in:
lassulus authored and GitHub committed 2026-10-20 14:12:08 +00:00
commit 7fdf779611
1 file changed
+2 -2
+2 -2
View File
@@ -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;
);