Fixes action_import to pickup RHEL3 ppc distros.
>From b63d06fc74f1bda68f02cffe7c825e157dccc806 Mon Sep 17 00:00:00 2001
From: Bill Peck <[email protected]>
Date: Wed, 18 Feb 2009 14:01:22 -0500
Subject: [PATCH] loosen compare to pickup vmlinux as well.  (RHEL3 ppc)

---
 cobbler/action_import.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 19b2f9a..cf843c6 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -521,7 +521,7 @@ class Importer:
 
            if x.startswith("initrd") or x.startswith("ramdisk.image.gz"):
                initrd = os.path.join(dirname,x)
-           if ( x.startswith("vmlinuz") or x.startswith("kernel.img") ) and 
x.find("initrd") == -1:
+           if ( x.startswith("vmlinu") or x.startswith("kernel.img") ) and 
x.find("initrd") == -1:
                kernel = os.path.join(dirname,x)
            if x.lower().startswith("startrom.n1_"):
                startrom = os.path.join(dirname,x)
-- 
1.6.0.6

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to