|
|
@ -9,9 +9,11 @@ pub fn exec_chroot(
|
|
|
|
command: &str,
|
|
|
|
command: &str,
|
|
|
|
args: Vec<String>,
|
|
|
|
args: Vec<String>,
|
|
|
|
) -> Result<std::process::ExitStatus, std::io::Error> {
|
|
|
|
) -> Result<std::process::ExitStatus, std::io::Error> {
|
|
|
|
let returncode = Command::new("arch-chroot")
|
|
|
|
let returncode = Command::new("bash")
|
|
|
|
.args(&["/mnt", command])
|
|
|
|
.args(&[
|
|
|
|
.args(args)
|
|
|
|
"-c",
|
|
|
|
|
|
|
|
format!("arch-chroot /mnt {} {}", command, args.join(" ")).as_str(),
|
|
|
|
|
|
|
|
])
|
|
|
|
.status();
|
|
|
|
.status();
|
|
|
|
returncode
|
|
|
|
returncode
|
|
|
|
}
|
|
|
|
}
|
|
|
|