edit sudoers and remove a stray println

axtloss/rework-partitioning
amy 3 years ago
parent 0165ca4e9a
commit 2147f676e8

@ -27,6 +27,10 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) {
),
format!("Add user {} to wheel group", username).as_str(),
);
files_eval(
files::append_file("/mnt/etc/sudoers", "%wheel ALL=(ALL) ALL"),
"Add wheel group to sudoers",
);
}
exec_eval(
exec_chroot(
@ -44,7 +48,6 @@ pub fn new_user(username: &str, hasroot: bool, password: &str) {
}
pub fn root_pass(root_pass: &str) {
println!("Setting root password to '{}'", root_pass);
exec_eval(
exec_chroot(
"bash",

Loading…
Cancel
Save