support both %runscript and %post-umount to perform scripts before packaging
[tools/mic.git] / mic / 3rdparty / pykickstart / constants.py
1 #
2 # Chris Lumens <clumens@redhat.com>
3 #
4 # Copyright 2005-2007 Red Hat, Inc.
5 #
6 # This copyrighted material is made available to anyone wishing to use, modify,
7 # copy, or redistribute it subject to the terms and conditions of the GNU
8 # General Public License v.2.  This program is distributed in the hope that it
9 # will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
10 # implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 # See the GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License along with
14 # this program; if not, write to the Free Software Foundation, Inc., 51
15 # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  Any Red Hat
16 # trademarks that are incorporated in the source code or documentation are not
17 # subject to the GNU General Public License and may only be used or replicated
18 # with the express permission of Red Hat, Inc. 
19 #
20 CLEARPART_TYPE_LINUX = 0
21 CLEARPART_TYPE_ALL = 1
22 CLEARPART_TYPE_NONE = 2
23
24 DISPLAY_MODE_CMDLINE = 0
25 DISPLAY_MODE_GRAPHICAL = 1
26 DISPLAY_MODE_TEXT = 2
27
28 FIRSTBOOT_DEFAULT = 0
29 FIRSTBOOT_SKIP = 1
30 FIRSTBOOT_RECONFIG = 2
31
32 KS_MISSING_PROMPT = 0
33 KS_MISSING_IGNORE = 1
34
35 SELINUX_DISABLED = 0
36 SELINUX_ENFORCING = 1
37 SELINUX_PERMISSIVE = 2
38
39 KS_SCRIPT_PRE = 0
40 KS_SCRIPT_POST = 1
41 KS_SCRIPT_TRACEBACK = 2
42 KS_SCRIPT_RUN = 3
43 KS_SCRIPT_UMOUNT = 4
44
45 KS_WAIT = 0
46 KS_REBOOT = 1
47 KS_SHUTDOWN = 2
48
49 KS_INSTKEY_SKIP = -99
50
51 BOOTPROTO_DHCP = "dhcp"
52 BOOTPROTO_BOOTP = "bootp"
53 BOOTPROTO_STATIC = "static"
54 BOOTPROTO_QUERY = "query"
55 BOOTPROTO_IBFT = "ibft"
56
57 GROUP_REQUIRED = 0
58 GROUP_DEFAULT = 1
59 GROUP_ALL = 2