diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-06-09 19:10:33 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-06-09 19:10:33 +0000 |
commit | e22389a8eb7fbfbe81bac961bc86775ff7347205 (patch) | |
tree | 2a66eee4b2bf88fddba13c3686e3624d9410932a | |
parent | c9285b266a5f47075d08bbb0c4468d9055fffd52 (diff) | |
download | anaconda-e22389a8eb7fbfbe81bac961bc86775ff7347205.tar.gz anaconda-e22389a8eb7fbfbe81bac961bc86775ff7347205.tar.xz anaconda-e22389a8eb7fbfbe81bac961bc86775ff7347205.zip |
2006-06-09 Jeremy Katz <katzj@redhat.com>
* iutil.py (isMactel): Add a way to check if a box is a mactel
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | iutil.py | 12 |
2 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,7 @@ 2006-06-09 Jeremy Katz <katzj@redhat.com> + * iutil.py (isMactel): Add a way to check if a box is a mactel + * scripts/upd-instroot (PACKAGES): kernel-utils is no more, make sure we get dmidecode @@ -436,6 +436,18 @@ def getPPCMacBook(): return 1 return 0 +# return True if this is one of the Intel-based Apple Macs +def isMactel(): + if rhpl.getArch() not in ("x86_64", "i386"): + return False + if not os.path.exists("/usr/sbin/dmidecode"): + return False + buf = execWithCapture("/usr/sbin/dmidecode", + ["dmidecode", "-s", "system-manufacturer"]) + if buf.lower().find("apple") != -1: + return True + return False + def hasNX(): """Convenience function to see if a machine supports the nx bit. We want to install an smp kernel if NX is present since NX requires PAE (#173245)""" |