Kaydet (Commit) 9c54c1dc authored tarafından sulincix's avatar sulincix

create userspace area

üst 816cb916
......@@ -126,6 +126,12 @@ class InstallerEngine:
self.do_run_in_chroot('useradd {username}'.format(username=self.setup.username))
self.do_run_in_chroot("echo -ne \"{0}\\n{0}\\n\" | passwd {1}".format(self.setup.password1,self.setup.username))
self.do_run_in_chroot("echo -ne \"{0}\\n{0}\\n\" | passwd".format(self.setup.password1))
for g in ['audio', 'video', 'wheel']:
self.do_run_in_chroot('usermod -a -G {group} {username}'.format(group=g, username=self.setup.username))
#Create Userspace area
self.do_run_in_chroot('mkdir -p /data/app/{username}'.format(username=self.setup.username))
self.do_run_in_chroot('chmod -R 641 /data/app/{username}'.format(username=self.setup.username))
self.do_run_in_chroot('chown -R {username} /data/app/{username}'.format(username=self.setup.username))
# Set autologin for user if they so elected
if self.setup.autologin:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment