add files_eval to directory creation

axtloss/rework-partitioning
axtloss 2 years ago committed by Michal S
parent 3d60a7ab31
commit 0559d37572

@ -66,7 +66,10 @@ 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::create_directory("/mnt/var/lib/AccountsService"); file_eval(
files::create_directory("/mnt/var/lib/AccountsService"),
format!("Create /mnt/var/lib/AcountsService"),
);
files::create_file(&format!("/mnt/var/lib/AccountsService/users/{}", username)); files::create_file(&format!("/mnt/var/lib/AccountsService/users/{}", username));
files_eval( files_eval(
files::append_file( files::append_file(

Loading…
Cancel
Save