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() { pub fn genfstab() {
exec_eval( exec_eval(
exec( exec(
"genfstab", "bash",
vec![ 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", "Generate fstab",

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

Loading…
Cancel
Save