Forcefully write btrfs

This commit is contained in:
Manuel Thalmann 2024-12-07 22:40:59 +01:00
parent 4967a1452c
commit 717f9eeb91
2 changed files with 2 additions and 2 deletions

View file

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

View file

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