Fix issue with unmounted /mnt/dev resolves #12

axtloss/rework-partitioning
axtloss 2 years ago
parent acd5f935e6
commit 1ddef5e7a8

@ -785,7 +785,7 @@ pub fn mount(partition: &str, mountpoint: &str, options: &str) {
}
}
fn umount(mountpoint: &str) {
pub fn umount(mountpoint: &str) {
exec_eval(
exec("umount", vec![String::from(mountpoint)]),
format!("unmount {}", mountpoint).as_str(),

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

Loading…
Cancel
Save