bcachefs format options need to go before device

Move extraFormatArgs in front of device. Else format does fail.
This commit is contained in:
noradtux authored and GitHub committed 2026-06-10 11:43:33 +02:00
1 parent 24fed06cac
commit 1ae020fe7c
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;
);