From 7c000748d4df33286a5840bbc48c6cb9df1de817 Mon Sep 17 00:00:00 2001 From: axtloss Date: Tue, 27 Sep 2022 14:03:09 +0200 Subject: [PATCH] Use fat32 for efi partition Signed-off-by: axtloss --- src/functions/partition.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/functions/partition.rs b/src/functions/partition.rs index a5aa200..315736f 100755 --- a/src/functions/partition.rs +++ b/src/functions/partition.rs @@ -292,7 +292,7 @@ fn part_nvme(device: &Path, efi: bool, unakite: bool) { let device = device.to_string_lossy().to_string(); if efi && !unakite { exec_eval( - exec("mkfs.vfat", vec![format!("{}p1", device)]), + exec("mkfs.vfat", vec![format!("-F32, {}p1", device)]), format!("format {}p1 as fat32", device).as_str(), ); exec_eval( @@ -390,7 +390,7 @@ fn part_nvme(device: &Path, efi: bool, unakite: bool) { mount(format!("{}p1", device).as_str(), "/mnt/boot", ""); } else if efi && unakite { exec_eval( - exec("mkfs.vfat", vec![format!("{}p1", device)]), + exec("mkfs.vfat", vec![format!("-F32 {}p1", device)]), format!("format {}p1 as fat32", device).as_str(), ); exec_eval( @@ -500,7 +500,7 @@ fn part_disk(device: &Path, efi: bool, unakite: bool) { let device = device.to_string_lossy().to_string(); if efi && !unakite { exec_eval( - exec("mkfs.vfat", vec![format!("{}1", device)]), + exec("mkfs.vfat", vec![format!("-F32 {}1", device)]), format!("format {}1 as fat32", device).as_str(), ); exec_eval( @@ -590,7 +590,7 @@ fn part_disk(device: &Path, efi: bool, unakite: bool) { mount(format!("{}1", device).as_str(), "/mnt/boot", ""); } else if efi && unakite { exec_eval( - exec("mkfs.vfat", vec![format!("{}1", device)]), + exec("mkfs.vfat", vec![format!("-F32 {}1", device)]), format!("format {}1 as fat32", device).as_str(), ); exec_eval(