Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 294166 Details for
Bug 431781
tasks, default group selection, centos patches
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
My base install class
realmlinux_centos.py (text/plain), 5.74 KB, created by
Jack Neely
on 2008-02-06 22:14:03 UTC
(
hide
)
Description:
My base install class
Filename:
MIME Type:
Creator:
Jack Neely
Created:
2008-02-06 22:14:03 UTC
Size:
5.74 KB
patch
obsolete
>#!/usr/bin/python ># ># realmlinux_centos.py - CentOS Installclass ># ># Copyright 2007 NC State University ># Written by Jack Neely <jjneely@ncsu.edu> ># ># SDG ># ># This program is free software; you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation; either version 2 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License ># along with this program; if not, write to the Free Software ># Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > >from installclass import BaseInstallClass >import iutil >import rpmUtils.arch >from autopart import * >from fsset import * >from rhpl.translate import N_, _ >from constants import * > >import logging >log = logging.getLogger("anaconda") > >class InstallClass(BaseInstallClass): > name = N_("Realm Linux CentOS 5") > pixmap = "realm-kit-workstation.png" > > sortPriority = 1 > default = 1 > > hidden = not productPath == 'CentOS' > > description = N_("Realm Linux for NC State University.") > > allowExtraRepos = True > repos = {'Realm Linux Packages': ('http://install.linux.ncsu.edu/pub/yum/CLS/RealmLinux/5/base/' + rpmUtils.arch.getBaseArch(), None), > 'Realm Linux Extras': ('http://install.linux.ncsu.edu/pub/yum/CLS/RealmLinux/5/extras/' + rpmUtils.arch.getBaseArch(), None)} > > tasks = [(N_("Desktop - Gnome "), ["graphics", "office", "games", "sound-and-video","base-x","gnome-desktop","graphical-internet","printing"]), > (N_("Desktop - KDE "), ["graphics", "office", "games", "sound-and-video","base-x","kde-desktop","graphical-internet","printing"]), > (N_("Software Development"), ["development-libs", "development-tools", "gnome-software-development", "x-software-development"],), > (N_("Web Server"), ["web-server"]), > (N_("Server - GUI "), ["server-cfg", "dns-server", "web-server", "ftp-server", "smb-server", "mail-server", "network-server", "legacy-network-server", "news-server", "base-x", "gnome-desktop", "admin-tools"]), > (N_("Virtualization"), ["virtualization"]), > (N_("Clustering"), ["clustering"]), > (N_("Storage Clustering"), ["cluster-storage"]) ] > > #pkgstext = _("\tDesktop shell (GNOME)\n" > # "\tOffice suite (OpenOffice)\n" > # "\tWeb browser (Firefox) \n" > # "\tEmail (Evolution)\n" > # "\tInstant messaging\n" > # "\tSound and video applications\n" > # "\tGames\n") > > def setSteps(self, dispatch): > BaseInstallClass.setSteps(self, dispatch) > > if BETANAG: > log.warning("This is a Beta Product!") > dispatch.skipStep("betanag", skip=0, permanent=1) > > dispatch.skipStep("authentication") > dispatch.skipStep("firewall") > > def setGroupSelection(self, anaconda): > BaseInstallClass.setGroupSelection(self, anaconda) > > # Automatically enable extra repos in this install class > # XXX: This is backend specific!! > repoids = [k.replace(" ", "") for k in self.repos.keys() ] > for id in repoids: > r = anaconda.backend.ayum.repos.getRepo(id) > r.enable() > if not r.ready(): > anaconda.backend.doRepoSetup(anaconda, id) > > grps = anaconda.backend.getDefaultGroups(anaconda) > map(lambda x: anaconda.backend.selectGroup(x), grps) > > coregrps = ["core", "base", "dialup", > "text-internet", "realmlinux-base"] > map(lambda x: anaconda.backend.selectGroup(x), coregrps) > > desktopgrps = ["editors", "graphics", "office", "games", > "sound-and-video", "base-x", "gnome-desktop", > "graphical-internet", "printing"] > map(lambda x: anaconda.backend.selectGroup(x), desktopgrps) > > log.info("Selected Realm Linux default groups.") > > def setDefaultPartitioning(self, partitions, clear = CLEARPART_TYPE_LINUX, > doClear = 1): > BaseInstallClass.setDefaultPartitioning(self, partitions, clear, > doClear) > > autorequests = [ ("/", None, 10240, None, 0, 1, 1), > ("/var", None, 2048, None, 0, 1, 1), > ("/var/cache", None, 2048, None, 0, 1, 1), > ("/tmp", None, 1025, None, 1, 1, 1) ] > > bootreq = getAutopartitionBoot() > if bootreq: > for req in bootreq: > autorequests.append(req) > > (minswap, maxswap) = iutil.swapSuggestion() > autorequests.append((None, "swap", minswap, maxswap, 1, 1, 1)) > > if doClear: > partitions.autoClearPartType = clear > partitions.autoClearPartDrives = [] > partitions.autoPartitionRequests = autoCreateLVMPartitionRequests(autorequests) > > > def setInstallData(self, anaconda): > BaseInstallClass.setInstallData(self, anaconda) > > self.setDefaultPartitioning(anaconda.id.partitions, > CLEARPART_TYPE_LINUX) > > self.setAuthentication(anaconda.id, > '--useshadow --enablemd5 --enableldap --ldapserver ldap.ncsu.edu --ldapbasedn dc=ncsu,dc=edu --enablecache --enablekrb5 --enablekrb5kdcdns --krb5realm EOS.NCSU.EDU') > > self.setFirewall(anaconda.id, enable = 1, ports = [22, 7001, 7006]) > self.setSELinux(anaconda.id, 'disabled') > > > def __init__(self, expert): > BaseInstallClass.__init__(self, expert) > BETANAG = 1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 431781
:
294165
| 294166 |
294167
|
294168