|
|
|
@ -12,10 +12,7 @@ pub fn fmt_mount(mountpoint: &str, filesystem: &str, blockdevice: &str) {
|
|
|
|
|
"vfat" => exec_eval(
|
|
|
|
|
exec(
|
|
|
|
|
"mkfs.vfat",
|
|
|
|
|
vec![
|
|
|
|
|
String::from("-F32"),
|
|
|
|
|
String::from(blockdevice),
|
|
|
|
|
],
|
|
|
|
|
vec![String::from("-F32"), String::from(blockdevice)],
|
|
|
|
|
),
|
|
|
|
|
format!("Formatting {blockdevice} as vfat").as_str(),
|
|
|
|
|
),
|
|
|
|
@ -291,7 +288,10 @@ 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![String::from("-F32"), format!("{}p1", device)]),
|
|
|
|
|
exec(
|
|
|
|
|
"mkfs.vfat",
|
|
|
|
|
vec![String::from("-F32"), format!("{}p1", device)],
|
|
|
|
|
),
|
|
|
|
|
format!("format {}p1 as fat32", device).as_str(),
|
|
|
|
|
);
|
|
|
|
|
exec_eval(
|
|
|
|
@ -389,7 +389,10 @@ 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![String::from("-F32"), format!("{}p1", device)]),
|
|
|
|
|
exec(
|
|
|
|
|
"mkfs.vfat",
|
|
|
|
|
vec![String::from("-F32"), format!("{}p1", device)],
|
|
|
|
|
),
|
|
|
|
|
format!("format {}p1 as fat32", device).as_str(),
|
|
|
|
|
);
|
|
|
|
|
exec_eval(
|
|
|
|
@ -499,7 +502,10 @@ 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![String::from("-F32"), format!("{}1", device)]),
|
|
|
|
|
exec(
|
|
|
|
|
"mkfs.vfat",
|
|
|
|
|
vec![String::from("-F32"), format!("{}1", device)],
|
|
|
|
|
),
|
|
|
|
|
format!("format {}1 as fat32", device).as_str(),
|
|
|
|
|
);
|
|
|
|
|
exec_eval(
|
|
|
|
@ -589,7 +595,10 @@ 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![String::from("-F32"), format!("{}1", device)]),
|
|
|
|
|
exec(
|
|
|
|
|
"mkfs.vfat",
|
|
|
|
|
vec![String::from("-F32"), format!("{}1", device)],
|
|
|
|
|
),
|
|
|
|
|
format!("format {}1 as fat32", device).as_str(),
|
|
|
|
|
);
|
|
|
|
|
exec_eval(
|
|
|
|
|