diff options
author | Chris Lumens <clumens@redhat.com> | 2009-07-01 13:31:47 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-07-02 09:52:32 -0400 |
commit | ac59ddaeaa3f89774ffde2a6abe5db757d94ba45 (patch) | |
tree | fa27af935def4dd3c8e355f7e9aae4c0efd72e3a /instdata.py | |
parent | 8b2477c29748728f883b37a3fd62ce9fa43e5d98 (diff) | |
download | anaconda-ac59ddaeaa3f89774ffde2a6abe5db757d94ba45.tar.gz anaconda-ac59ddaeaa3f89774ffde2a6abe5db757d94ba45.tar.xz anaconda-ac59ddaeaa3f89774ffde2a6abe5db757d94ba45.zip |
Allow creating new groups through kickstart.
This is executed before users are created, so new users may be added to
the new groups immediately.
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/instdata.py b/instdata.py index 07984d5be..7e441772d 100644 --- a/instdata.py +++ b/instdata.py @@ -182,6 +182,12 @@ class InstallData: stdout="/dev/tty5", stderr="/dev/tty5", root=self.anaconda.rootPath) + for gd in self.ksdata.group.groupList: + if not self.users.createGroup(name=gd.name, + gid=gd.gid, + root=self.anaconda.rootPath): + log.error("Group %s already exists, not creating." % gd.name) + for ud in self.ksdata.user.userList: if not self.users.createUser(name=ud.name, password=ud.password, |