From fc2070a4fff8ee3462bbb4630cf8068b8e53d1b3 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Tue, 20 Sep 2011 15:02:01 +0400 Subject: [PATCH] Move cl_autologin to calculate-install. --- pym/cl_fill.py | 10 ---------- pym/cl_vars.py | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index 1d5350b..31bbc61 100644 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -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 "" diff --git a/pym/cl_vars.py b/pym/cl_vars.py index 9f65a74..0466cc5 100644 --- a/pym/cl_vars.py +++ b/pym/cl_vars.py @@ -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}