|
|
@ -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/", "");
|
|
|
|