2 # data.py: Kickstart data representation.
4 # Chris Lumens <clumens@redhat.com>
6 # Copyright 2005 Red Hat, Inc.
8 # This software may be freely redistributed under the terms of the GNU
9 # general public license.
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software
13 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 from constants
import *
19 # Set by command handlers.
22 self
.autostep
= {"autoscreenshot": False}
23 self
.bootloader
= {"appendLine": "", "driveorder": [],
24 "forceLBA": False, "location": "mbr", "md5pass": "",
25 "password": "", "upgrade": False}
27 self
.clearpart
= {"drives": [], "initAll": False,
28 "type": CLEARPART_TYPE_NONE
}
31 self
.displayMode
= DISPLAY_MODE_GRAPHICAL
33 self
.firewall
= {"enabled": True, "ports": [], "trusts": []}
34 self
.firstboot
= FIRSTBOOT_SKIP
36 self
.interactive
= False
39 self
.logging
= {"host": "", "level": "info", "port": ""}
40 self
.mediacheck
= False
41 self
.method
= {"method": ""}
42 self
.monitor
= {"hsync": "", "monitor": "", "probe": True, "vsync": ""}
45 self
.reboot
= {"action": KS_WAIT
, "eject": False}
46 self
.rootpw
= {"isCrypted": False, "password": ""}
47 self
.selinux
= SELINUX_ENFORCING
49 self
.timezone
= {"isUtc": False, "timezone": ""}
51 self
.vnc
= {"enabled": False, "password": "", "host": "", "port": ""}
52 self
.xconfig
= {"driver": "", "defaultdesktop": "", "depth": 0,
53 "resolution": "", "startX": False, "videoRam": ""}
55 self
.zfcp
= {"devnum": "", "fcplun": "", "scsiid": "", "scsilun": "",
65 # Set by %package header.
66 self
.excludeDocs
= False
68 self
.handleMissing
= KS_MISSING_PROMPT
73 self
.excludedList
= []
76 class KickstartLogVolData
:
78 self
.bytesPerInode
= 4096
86 self
.recommended
= False
92 class KickstartNetworkData
:
94 self
.bootProto
= "dhcp"
105 self
.notksdevice
= False
109 class KickstartPartData
:
112 self
.primOnly
= False
113 self
.bytesPerInode
= 4096
124 self
.recommended
= False
129 class KickstartRaidData
:
137 self
.preexist
= False
140 self
.bytesPerInode
= 4096
142 class KickstartRepoData
:
148 class KickstartVolGroupData
:
152 self
.preexist
= False
156 class KickstartDmRaidData
: