fix genfstab issue ( #3 )

axtloss/rework-partitioning
amy 3 years ago
parent 908e106f2c
commit 9729a1006f

@ -28,12 +28,10 @@ pub fn install_base_packages() {
pub fn genfstab() {
exec_eval(
exec(
"genfstab",
"bash",
vec![
String::from("-U"),
String::from("/mnt"),
String::from(">>"),
String::from("/mnt/etc/fstab"),
String::from("-c"),
String::from("genfstab -U /mnt >> /mnt/etc/fstab"),
],
),
"Generate fstab",

@ -3,10 +3,7 @@ use std::process::Command;
pub fn install(pkgs: Vec<&str>) {
exec_eval(
Command::new("pacstrap")
.arg("/mnt")
.args(&pkgs)
.status(),
Command::new("pacstrap").arg("/mnt").args(&pkgs).status(),
format!("Install packages {}", pkgs.join(", ")).as_str(),
);
}

Loading…
Cancel
Save