Move cl_autologin to calculate-install.

develop
Mike Hiretsky 13 years ago
parent 36daf4783c
commit fc2070a4ff

@ -730,13 +730,3 @@ class fillVars(varsShare):
if path.exists(timezonefile):
return open(timezonefile,"r").read().strip()
return "UTC"
def get_cl_autologin(self):
"""For livecd get first local non-root user"""
if self.Get('os_root_type') == "livecd" or
self.Get('os_linux_shortname') == 'CMC':
nonRootUsers = filter(lambda x: x != "root",
self.Get('cl_migrate_user'))
if nonRootUsers:
return nonRootUsers[0]
return ""

@ -88,16 +88,6 @@ class Data:
# template file performed at now
cl_pass_file = {'hide':True, 'mode':"w"}
"""
cl_autologin:
Available values: "" or username
If variable empty then system will not perform autologin
If variable value is username then dm perform autologin for this user
Fill: for livecd this variable get first local user (non-root)
"""
cl_autologin = {'hide':True, 'mode':"w"}
# root partition of filesystem
os_root_dev = {'hide':True}

Loading…
Cancel
Save