From 24ca8a5b9a02d2f561e0b6b8979416c605f942c8 Mon Sep 17 00:00:00 2001 From: axtlos Date: Mon, 18 Apr 2022 23:53:46 +0200 Subject: [PATCH] add force option for mkfs.btrfs --- src/functions/partition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/partition.rs b/src/functions/partition.rs index cf2bd02..29d6579 100755 --- a/src/functions/partition.rs +++ b/src/functions/partition.rs @@ -102,7 +102,7 @@ pub fn partition(device: &str, mode: &str, efi: bool) { fn part_nvme(device: &str, efi: bool) { if efi { exec_eval( - exec("mkfs.vfat", vec![format!("{}p1", device)]), + exec("mkfs.vfat", vec!["-f".to_string(), format!("{}p1", device)]), format!("format {}p1 as fat32", device).as_str(), ); exec_eval(