Skip to content

Commit 1bb9240

Browse files
author
crasm
committed
bcachefs: fix empty label
1 parent 7194cfe commit 1bb9240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/types/bcachefs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
default = ''
6767
# Write device arguments to temporary directory for bcachefs_filesystem.
6868
{
69-
printf '%s\n' '--label=${config.label}';
69+
${lib.optionalString (config.label != "") "printf '%s\n' '--label=${config.label}';"}
7070
${lib.concatMapStrings (args: ''printf '%s\n' '${args}';'') config.extraFormatArgs}
7171
printf '%s\n' '${config.device}';
7272
} >> "$disko_devices_dir/bcachefs-${lib.escapeShellArg config.filesystem}";

0 commit comments

Comments
 (0)