# # constants.py: anaconda constants # # Copyright (C) 2001 Red Hat, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty 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, see . # # Author(s): Erik Troan # import re import gettext _ = lambda x: gettext.ldgettext("anaconda", x) N_ = lambda x: x SELINUX_DEFAULT = 1 DISPATCH_BACK = -1 DISPATCH_FORWARD = 1 DISPATCH_DEFAULT = None DISPATCH_WAITING = 2 # XXX this is made up and used by the size spinner; should just be set with # a callback MAX_PART_SIZE = 1024*1024*1024 # install key related constants SKIP_KEY = -50 # pull in kickstart constants as well from pykickstart.constants import * # common string needs to be easy to change import product productName = product.productName productVersion = product.productVersion productArch = product.productArch bugzillaUrl = product.bugUrl isFinal = product.isFinal exceptionText = _("An unhandled exception has occurred. This " "is most likely a bug. Please save a copy of " "the detailed exception and file a bug report") if not bugzillaUrl: # this string will be combined with "An unhandled exception"... # the leading space is not a typo. exceptionText += _(" with the provider of this software.") else: # this string will be combined with "An unhandled exception"... # the leading space is not a typo. exceptionText += _(" against anaconda at %s") %(bugzillaUrl,) # DriverDisc Paths DD_ALL = "/tmp/DD" DD_EXTRACTED = re.compile("/lib/modules/[^/]+/updates/DD/(?P.*/)?(?P[^/.]+).ko.*") DD_FIRMWARE = "/tmp/DD/lib/firmware" DD_RPMS = "/tmp/DD-*" TRANSLATIONS_UPDATE_DIR="/tmp/updates/po" relabelFiles = ["/etc/rpm/macros", "/etc/dasd.conf", "/etc/zfcp.conf", "/etc/lilo.conf.anaconda", "/lib64", "/usr/lib64", "/etc/blkid.tab", "/etc/blkid.tab.old", "/etc/mtab", "/etc/fstab", "/etc/resolv.conf", "/etc/modprobe.conf", "/etc/modprobe.conf~", "/var/log/wtmp", "/var/run/utmp", "/etc/crypttab", "/dev/log", "/var/lib/rpm", "/", "/etc/raidtab", "/etc/mdadm.conf", "/etc/sysconfig/network", "/etc/udev/rules.d/70-persistent-net.rules", "/root/install.log", "/root/install.log.syslog", "/etc/shadow", "/etc/shadow-", "/etc/gshadow", "/etc/dhcp/dhclient-*.conf", "/etc/localtime"] relabelDirs = ["/etc/sysconfig/network-scripts", "/var/lib/rpm", "/var/lib/yum", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/root", "/var/lock", "/var/log", "/etc/modprobe.d", "/etc/sysconfig", "/var/cache/yum" ] ANACONDA_CLEANUP = "anaconda-cleanup" ROOT_PATH = "/mnt/sysimage"