diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-08-07 17:44:02 +0100 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-08-08 13:32:49 -0400 |
commit | 6650da96138d9a2135bc5713d84ac61d12f4c1f4 (patch) | |
tree | 475cb3d35e497c6a5b574eb75772a5274ebcf060 /iutil.py | |
parent | 64625b8ba5318b2cc2d8ce7fc273102b2ce23ffc (diff) | |
download | anaconda-6650da96138d9a2135bc5713d84ac61d12f4c1f4.tar.gz anaconda-6650da96138d9a2135bc5713d84ac61d12f4c1f4.tar.xz anaconda-6650da96138d9a2135bc5713d84ac61d12f4c1f4.zip |
yuminstall: don't ever stop people installing the virt group
This hack was important to stop people installing Xen dom0
on a machine where it wouldn't boot.
We don't have dom0 currently and now always makes sense to
allow people to install virt-manager and co. for containers,
qemu etc. etc.
If the hack ever comes back, it should just be to delete
the xen-hypervisor package (not in comps for F10) from the
list of options.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -496,26 +496,6 @@ def isEfi(): return efi -## Extract the CPU feature flags from /proc/cpuinfo -# @return A list of CPU feature flags, or an empty list on error. -def cpuFeatureFlags(): - if not isX86(): - return False - f = open("/proc/cpuinfo", "r") - lines = f.readlines() - f.close() - - for line in lines: - if not line.startswith("flags"): - continue - # get the actual flags - flags = line[:-1].split(":", 1)[1] - # and split them - flst = flags.split(" ") - return flst - - return [] - ## Generate the /etc/rpm/platform and /etc/rpm/macros files. # @param root The root of the filesystem to create the files in. def writeRpmPlatform(root="/"): @@ -568,21 +548,6 @@ def writeRpmPlatform(root="/"): f.close() -## Check to see if we are in a xen environment. -# -def inXen(): - if os.path.exists("/proc/xen/capabilities"): - return True - return False - -## Check to see if we are in a vmware environment. -# -def inVmware(): - out = execWithCapture("lspci", ["-vvv"]) - if "VMware" in out: - return True - return False - # Architecture checking functions def isX86(bits=None): |