Forcefully write btrfs

This commit is contained in:
Manuel Thalmann 2024-12-07 22:40:59 +01:00
parent 7c3297b993
commit 02dd399284
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ in
builtins.map
(
_: builtins.concatStringsSep " " (
[ "mkfs.btrfs" ] ++
[ "mkfs.btrfs" "--force" ] ++
(lib.optionals (_.metadataProfile != null) [ "--metadata" "${_.metadataProfile}" ]) ++
(lib.optionals (_.dataProfile != null) [ "--data" "${_.dataProfile}" ]) ++
(lib.optionals (_.label != null) [ "--label" "${_.label}" ]) ++

View file

@ -132,7 +132,7 @@ let
formatScripts = {
${fs.ext4} = "mkfs.ext4 -F ${partVar}";
${fs.btrfs} = "mkfs.btrfs ${partVar}";
${fs.btrfs} = "mkfs.btrfs --force ${partVar}";
${fs.swap} = "mkswap ${partVar}";
${fs.ntfs} = "mkfs.ntfs -F ${partVar}";
${fs.fat32} = "mkfs.fat -F 32 ${partVar}";