@ -28,12 +28,10 @@ pub fn install_base_packages() {
pub fn genfstab() {
exec_eval(
exec(
"genfstab",
"bash",
vec![
String::from("-U"),
String::from("-c"),
String::from("/mnt"),
String::from("genfstab -U /mnt >> /mnt/etc/fstab"),
String::from(">>"),
String::from("/mnt/etc/fstab"),
],
),
"Generate fstab",
@ -3,10 +3,7 @@ use std::process::Command;
pub fn install(pkgs: Vec<&str>) {
Command::new("pacstrap")
Command::new("pacstrap").arg("/mnt").args(&pkgs).status(),
.arg("/mnt")
.args(&pkgs)
.status(),
format!("Install packages {}", pkgs.join(", ")).as_str(),
);
}