Update users.rs to not weirdly install packages

axtloss/rework-partitioning
axtloss 2 years ago committed by Michal
parent 306ffc58c0
commit cb5e43072a

@ -19,17 +19,7 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo
"zsh" => "zsh", "zsh" => "zsh",
&_ => "bash", &_ => "bash",
}; };
exec_eval( install::install(vec![shell_to_install]);
exec_chroot(
"bash",
vec![
String::from("pacman -S "),
String::from(shell_to_install),
String::from("--noconfirm"),
],
),
format!("installed {shell:?}").as_str(),
);
let shell_path = match shell { let shell_path = match shell {
"bash" => "/bin/bash", "bash" => "/bin/bash",
"csh" => "/usr/bin/csh", "csh" => "/usr/bin/csh",

Loading…
Cancel
Save