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}
26 self
.clearpart
= {"drives": [], "initAll": False,
27 "type": CLEARPART_TYPE_NONE
}
30 self
.displayMode
= DISPLAY_MODE_GRAPHICAL
32 self
.firewall
= {"enabled": True, "ports": [], "trusts": []}
33 self
.firstboot
= FIRSTBOOT_SKIP
35 self
.interactive
= False
38 self
.mediacheck
= False
39 self
.method
= {"method": ""}
40 self
.monitor
= {"hsync": "", "monitor": "", "probe": True, "vsync": ""}
44 self
.rootpw
= {"isCrypted": False, "password": ""}
45 self
.selinux
= SELINUX_ENFORCING
47 self
.timezone
= {"isUtc": False, "timezone": ""}
49 self
.vnc
= {"enabled": False, "password": "", "host": "", "port": ""}
50 self
.xconfig
= {"driver": "", "defaultdesktop": "", "depth": 0,
51 "probe": True, "resolution": "", "startX": False,
54 self
.zfcp
= {"devnum": "", "fcplun": "", "scsiid": "", "scsilun": "",
62 # Set by %package header.
63 self
.excludeDocs
= False
65 self
.handleMissing
= KS_MISSING_PROMPT
70 self
.excludedList
= []
73 class KickstartLogVolData
:
75 self
.bytesPerInode
= 4096
83 self
.recommended
= False
89 class KickstartNetworkData
:
91 self
.bootProto
= "dhcp"
102 self
.notksdevice
= False
106 class KickstartPartData
:
109 self
.primOnly
= False
110 self
.bytesPerInode
= 4096
121 self
.recommended
= False
126 class KickstartRaidData
:
134 self
.preexist
= False
137 self
.bytesPerInode
= 4096
139 class KickstartVolGroupData
:
143 self
.preexist
= False