summaryrefslogtreecommitdiffstats
path: root/cobbler/action_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_import.py')
-rw-r--r--cobbler/action_import.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 164f7bb..db09818 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -565,6 +565,24 @@ class Importer:
elif x.find("ia64") != -1:
foo["result"] = "ia64"
return
+
+ # This extra code block is a temporary fix for rhel4.x 64bit [x86_64]
+ # distro ARCH identification-- L.M.
+ # NOTE: eventually refactor to merge in with the above block
+ for x in fnames:
+ if not x.endswith("rpm"):
+ continue
+ if x.find("kernel-largesmp") != -1:
+ print _("- kernel header found: %s") % x
+ if x.find("i386") != -1:
+ foo["result"] = "x86"
+ return
+ elif x.find("x86_64") != -1:
+ foo["result"] = "x86_64"
+ return
+ elif x.find("ia64") != -1:
+ foo["result"] = "ia64"
+ return
def learn_arch_from_tree(self,dirname):