Remove erroneous `files_eval`

axtloss/rework-partitioning
Michal S 2 years ago
parent 109021ed33
commit 5cce20a13f

@ -66,13 +66,7 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo
files::append_file("/mnt/etc/sudoers", "\nDefaults pwfeedback\n"), files::append_file("/mnt/etc/sudoers", "\nDefaults pwfeedback\n"),
"Add pwfeedback to sudoers", "Add pwfeedback to sudoers",
); );
files_eval( files::create_file(&format!("/mnt/var/lib/AccountsService/users/{}", username));
Ok(files::create_file(&format!(
"/mnt/var/lib/AccountsService/users/{}",
username
))),
format!("Create AccountsService user file for {}", username).as_str(),
);
files_eval( files_eval(
files::append_file( files::append_file(
&format!("/mnt/var/lib/AccountsService/users/{}", username), &format!("/mnt/var/lib/AccountsService/users/{}", username),

Loading…
Cancel
Save