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![ vec![
String::from("-c"), String::from("-c"),
format!( format!(
"'usermod --password $(echo {} | openssl passwd -1 -stdin) root'", r#"'usermod --password $(echo {} | openssl passwd -1 -stdin) root'"#,
root_pass root_pass
), ),
], ],

@ -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
} }

Loading…
Cancel
Save