From 5eddb302264f074d4c63a0c6a166c40c6dd0f30d Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 2 Jun 2009 11:45:15 -0400 Subject: [PATCH] Add initial support for F12. --- pykickstart/handlers/control.py | 76 ++++++++++++++++++++++++++++++++++++++++- pykickstart/handlers/f12.py | 24 +++++++++++++ pykickstart/version.py | 5 +-- 3 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 pykickstart/handlers/f12.py diff --git a/pykickstart/handlers/control.py b/pykickstart/handlers/control.py index dae8255..6b273b9 100644 --- a/pykickstart/handlers/control.py +++ b/pykickstart/handlers/control.py @@ -1,7 +1,7 @@ # # Chris Lumens # -# Copyright 2007, 2008 Red Hat, Inc. +# Copyright 2007, 2008, 2009 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU @@ -527,6 +527,65 @@ commandMap = { "zfcp": zfcp.FC3_ZFCP, }, + # based on f11 + F12: { + "auth": authconfig.FC3_Authconfig, + "authconfig": authconfig.FC3_Authconfig, + "autopart": autopart.F9_AutoPart, + "autostep": autostep.FC3_AutoStep, + "bootloader": bootloader.F8_Bootloader, + "cdrom": method.FC6_Method, + "clearpart": clearpart.FC3_ClearPart, + "cmdline": displaymode.FC3_DisplayMode, + "device": device.F8_Device, + "deviceprobe": deviceprobe.FC3_DeviceProbe, + "dmraid": dmraid.FC6_DmRaid, + "driverdisk": driverdisk.FC3_DriverDisk, + "firewall": firewall.F10_Firewall, + "firstboot": firstboot.FC3_Firstboot, + "graphical": displaymode.FC3_DisplayMode, + "halt": reboot.FC6_Reboot, + "harddrive": method.FC6_Method, + "ignoredisk": ignoredisk.F8_IgnoreDisk, + "install": upgrade.F11_Upgrade, + "interactive": interactive.FC3_Interactive, + "iscsi": iscsi.F10_Iscsi, + "iscsiname": iscsiname.FC6_IscsiName, + "key": key.F7_Key, + "keyboard": keyboard.FC3_Keyboard, + "lang": lang.FC3_Lang, + "logging": logging.FC6_Logging, + "logvol": logvol.F9_LogVol, + "mediacheck": mediacheck.FC4_MediaCheck, + "monitor": monitor.F10_Monitor, + "multipath": multipath.FC6_MultiPath, + "network": network.F9_Network, + "nfs": method.FC6_Method, + "part": partition.F11_Partition, + "partition": partition.F11_Partition, + "poweroff": reboot.FC6_Reboot, + "raid": raid.F9_Raid, + "reboot": reboot.FC6_Reboot, + "repo": repo.F11_Repo, + "rescue": rescue.F10_Rescue, + "rootpw": rootpw.F8_RootPw, + "selinux": selinux.FC3_SELinux, + "services": services.FC6_Services, + "shutdown": reboot.FC6_Reboot, + "skipx": skipx.FC3_SkipX, + "text": displaymode.FC3_DisplayMode, + "timezone": timezone.FC6_Timezone, + "updates": updates.F7_Updates, + "upgrade": upgrade.F11_Upgrade, + "url": method.FC6_Method, + "user": user.F8_User, + "vnc": vnc.F9_Vnc, + "volgroup": volgroup.FC3_VolGroup, + "xconfig": xconfig.F10_XConfig, + "zerombr": zerombr.F9_ZeroMbr, + "zfcp": zfcp.FC3_ZFCP, + }, + # based on fc1 RHEL3: { "auth": authconfig.FC3_Authconfig, @@ -809,6 +868,21 @@ dataMap = { "VolGroupData": volgroup.FC3_VolGroupData, "ZFCPData": zfcp.FC3_ZFCPData, }, + F12: { + "DriverDiskData": driverdisk.FC3_DriverDiskData, + "DeviceData": device.F8_DeviceData, + "DmRaidData": dmraid.FC6_DmRaidData, + "IscsiData": iscsi.F10_IscsiData, + "LogVolData": logvol.F9_LogVolData, + "MultiPathData": multipath.FC6_MultiPathData, + "NetworkData": network.F8_NetworkData, + "PartData": partition.F11_PartData, + "RaidData": raid.F9_RaidData, + "RepoData": repo.F11_RepoData, + "UserData": user.F8_UserData, + "VolGroupData": volgroup.FC3_VolGroupData, + "ZFCPData": zfcp.FC3_ZFCPData, + }, RHEL3: { "DriverDiskData": driverdisk.FC3_DriverDiskData, "LogVolData": logvol.FC3_LogVolData, diff --git a/pykickstart/handlers/f12.py b/pykickstart/handlers/f12.py new file mode 100644 index 0000000..4a66a16 --- /dev/null +++ b/pykickstart/handlers/f12.py @@ -0,0 +1,24 @@ +# +# Chris Lumens +# +# Copyright 2009 Red Hat, Inc. +# +# This copyrighted material is made available to anyone wishing to use, modify, +# copy, or redistribute it subject to the terms and conditions of the GNU +# General Public License v.2. This program is distributed in the hope that it +# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the +# implied warranties 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., 51 +# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat +# trademarks that are incorporated in the source code or documentation are not +# subject to the GNU General Public License and may only be used or replicated +# with the express permission of Red Hat, Inc. +# +from pykickstart.base import * +from pykickstart.version import * + +class F11Handler(BaseHandler): + version = F12 diff --git a/pykickstart/version.py b/pykickstart/version.py index ced4e13..99cd83a 100644 --- a/pykickstart/version.py +++ b/pykickstart/version.py @@ -64,15 +64,16 @@ F8 = 6000 F9 = 7000 F10 = 8000 F11 = 9000 +F12 = 10000 # This always points at the latest version and is the default. -DEVEL = F11 +DEVEL = F12 """A one-to-one mapping from string representations to version numbers.""" versionMap = { "DEVEL": DEVEL, "FC3": FC3, "FC4": FC4, "FC5": FC5, "FC6": FC6, "F7": F7, "F8": F8, - "F9": F9, "F10": F10, "F11": F11, + "F9": F9, "F10": F10, "F11": F11, "F12": F12, "RHEL3": RHEL3, "RHEL4": RHEL4, "RHEL5": RHEL5 } -- 2.11.4.GIT