i didn't save the file with the force option :|

axtloss/rework-partitioning
axtlos 3 years ago
parent 24ca8a5b9a
commit 3c88ac8487
No known key found for this signature in database
GPG Key ID: A468AFD71DD51D4A

@ -102,11 +102,11 @@ pub fn partition(device: &str, mode: &str, efi: bool) {
fn part_nvme(device: &str, efi: bool) { fn part_nvme(device: &str, efi: bool) {
if efi { if efi {
exec_eval( exec_eval(
exec("mkfs.vfat", vec!["-f".to_string(), format!("{}p1", device)]), exec("mkfs.vfat", vec![format!("{}p1", device)]),
format!("format {}p1 as fat32", device).as_str(), format!("format {}p1 as fat32", device).as_str(),
); );
exec_eval( exec_eval(
exec("mkfs.btrfs", vec![format!("{}p2", device)]), exec("mkfs.btrfs", vec!["-f".to_string(), format!("{}p2", device)]),
format!("format {}p2 as btrfs", device).as_str(), format!("format {}p2 as btrfs", device).as_str(),
); );
mount(format!("{}p2", device).as_str(), "/mnt", ""); mount(format!("{}p2", device).as_str(), "/mnt", "");
@ -154,7 +154,7 @@ fn part_nvme(device: &str, efi: bool) {
format!("format {}p1 as ext4", device).as_str(), format!("format {}p1 as ext4", device).as_str(),
); );
exec_eval( exec_eval(
exec("mkfs.btrfs", vec![format!("{}p2", device)]), exec("mkfs.btrfs", vec!["-f".to_string(), format!("{}p2", device)]),
format!("format {}p2 as btrfs", device).as_str(), format!("format {}p2 as btrfs", device).as_str(),
); );
mount(format!("{}p2", device).as_str(), "/mnt/", ""); mount(format!("{}p2", device).as_str(), "/mnt/", "");

Loading…
Cancel
Save