|
|
@ -1,4 +1,6 @@
|
|
|
|
use crate::internal::*;
|
|
|
|
use crate::internal::*;
|
|
|
|
|
|
|
|
use crate::functions::partition::mount;
|
|
|
|
|
|
|
|
use crate::functions::partition::umount;
|
|
|
|
use std::process::Command;
|
|
|
|
use std::process::Command;
|
|
|
|
|
|
|
|
|
|
|
|
pub fn install(pkgs: Vec<&str>) {
|
|
|
|
pub fn install(pkgs: Vec<&str>) {
|
|
|
@ -6,4 +8,5 @@ pub fn install(pkgs: Vec<&str>) {
|
|
|
|
Command::new("pacstrap").arg("/mnt").args(&pkgs).status(),
|
|
|
|
Command::new("pacstrap").arg("/mnt").args(&pkgs).status(),
|
|
|
|
format!("Install packages {}", pkgs.join(", ")).as_str(),
|
|
|
|
format!("Install packages {}", pkgs.join(", ")).as_str(),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
umount("/mnt/dev");
|
|
|
|
}
|
|
|
|
}
|
|
|
|