summaryrefslogtreecommitdiffstats
path: root/cobbler/action_check.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-09-21 16:23:34 -0400
committerJim Meyering <jim@meyering.net>2006-09-21 16:23:34 -0400
commita846ccb34ab5723bc4ecef309575aae1c2532f51 (patch)
treedc03ad71ff84f65e138656b864b2410b2507b965 /cobbler/action_check.py
parent88e0254b48d8b454663a447453df7999b141dc6d (diff)
downloadthird_party-cobbler-a846ccb34ab5723bc4ecef309575aae1c2532f51.tar.gz
third_party-cobbler-a846ccb34ab5723bc4ecef309575aae1c2532f51.tar.xz
third_party-cobbler-a846ccb34ab5723bc4ecef309575aae1c2532f51.zip
- Initial batch of changes to support (a) dhcpd.conf templating and (b)
supporting alternative boot loader architectures (like Itanium).
Diffstat (limited to 'cobbler/action_check.py')
-rw-r--r--cobbler/action_check.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index d10c162..e0cfc12 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -71,8 +71,11 @@ class BootCheck:
"""
Check if pxelinux (part of syslinux) is installed
"""
- if not os.path.exists(self.settings.pxelinux):
- status.append(cobbler_msg.lookup("no_pxelinux"))
+ for pxelinux in keys(self.settings.pxelinuxes):
+ filename = self.settings.pxelinuxes[pxelinux]
+ if not os.path.exists(filename):
+ status.append(cobbler_msg.lookup("no_pxelinux"))
+ return
def check_tftpd_bin(self,status):
"""
@@ -111,11 +114,17 @@ class BootCheck:
def check_dhcpd_conf(self,status):
"""
+ NOTE: this code only applies if cobbler is *NOT* set to generate
+ a dhcp.conf file
+
Check that dhcpd *appears* to be configured for pxe booting.
We can't assure file correctness. Since a cobbler user might
have dhcp on another server, it's okay if it's not there and/or
not configured correctly according to automated scans.
"""
+ if not (self.settings.manage_dhcp == 0):
+ return
+
if os.path.exists(self.settings.dhcpd_conf):
match_next = False
match_file = False