/[smeserver]/cdrom.image/updates/constants.py
ViewVC logotype

Contents of /cdrom.image/updates/constants.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Wed Apr 19 01:57:53 2006 UTC (18 years, 1 month ago) by gordonr
Branch: MAIN
Changes since 1.1: +4 -4 lines
Content type: text/x-python
Bug 1250

1 #
2 # constants.py: anaconda constants
3 #
4 # Erik Troan <ewt@redhat.com>
5 #
6 # Copyright 2001 Red Hat, Inc.
7 #
8 # This software may be freely redistributed under the terms of the GNU
9 # library public license.
10 #
11 # You should have received a copy of the GNU Library Public License
12 # along with this program; if not, write to the Free Software
13 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
14 #
15
16 from rhpl.translate import N_
17
18 BETANAG = 0
19
20 DEBUG = 0
21
22 SELINUX_DEFAULT = 1
23
24 cmdline = open("/proc/cmdline", "r").read()
25 if cmdline.find("debug") != -1:
26 DEBUG = 1
27
28 DISPATCH_BACK = -1
29 DISPATCH_FORWARD = 1
30 DISPATCH_NOOP = None
31
32 # different types of partition requests
33 # REQUEST_PREEXIST is a placeholder for a pre-existing partition on the system
34 # REQUEST_NEW is a request for a partition which will be automatically
35 # created based on various constraints on size, drive, etc
36 # REQUEST_RAID is a request for a raid device
37 # REQUEST_PROTECTED is a preexisting partition which can't change
38 # (harddrive install, harddrive with the isos on it)
39 #
40 REQUEST_PREEXIST = 1
41 REQUEST_NEW = 2
42 REQUEST_RAID = 4
43 REQUEST_PROTECTED = 8
44 REQUEST_VG = 16 # volume group
45 REQUEST_LV = 32 # logical volume
46
47 # when clearing partitions, what do we clear
48 CLEARPART_TYPE_LINUX = 1
49 CLEARPART_TYPE_ALL = 2
50 CLEARPART_TYPE_NONE = 3
51
52 # XXX this is made up and used by the size spinner; should just be set with
53 # a callback
54 MAX_PART_SIZE = 1024*1024*1024
55
56 # these are used for kickstart
57 CHECK_DEPS = 0
58 IGNORE_DEPS = 1
59 RESOLVE_DEPS = 2
60
61 # firstboot settings
62 FIRSTBOOT_DEFAULT = 0
63 FIRSTBOOT_SKIP = 1
64 FIRSTBOOT_RECONFIG = 2
65
66 # common string needs to be easy to change
67 import product
68 productName = product.productName
69 productVersion = product.productVersion
70 productPath = product.productPath
71
72 exceptionText = N_("An unhandled exception has occurred. This "
73 "is most likely a bug. Please copy the "
74 "full text of this exception or save the crash "
75 "dump to a floppy then file a detailed bug "
76 "report against the SME Server installer at "
77 "http://www.contribs.org/bugzilla/")
78
79 exceptionTextNoFloppy = N_("An unhandled exception has occurred. This "
80 "is most likely a bug. Please copy the "
81 "full text of this exception and file a detailed "
82 "bug report against the SME Server installer at "
83 "http://www.contribs.org/bugzilla/")

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed