maybe this'll work

axtloss/rework-partitioning
amy 3 years ago
parent 7eba5709ba
commit 699ef6eb86

@ -57,7 +57,7 @@ pub fn root_pass(root_pass: &str) {
vec![
String::from("-c"),
format!(
"'usermod --password $(echo {} | openssl passwd -1 -stdin) root'",
r#"'usermod --password $(echo {} | openssl passwd -1 -stdin) root'"#,
root_pass
),
],

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

Loading…
Cancel
Save