- if os.access("%s/boot/kernel-boot" % SYSIMG_PATH, os.F_OK | os.R_OK) and \
- os.access("%s/boot/initrd-boot" % SYSIMG_PATH, os.F_OK | os.R_OK):
- valid= 1
-
+ # get the kernel version
+ option = ''
+ if NODE_MODEL_OPTIONS & SMP_OPT:
+ option = 'smp'
+
+ files = ("kernel-boot%s" % option, "initrd-boot%s" % option)
+ valid= 1
+ for filepath in files:
+ if not os.access("%s/boot/%s"%(SYSIMG_PATH,filepath),os.F_OK|os.R_OK):
+ log.write( "Node not properly installed:\n")
+ log.write( "\tmissing file /boot/%s\n" % filepath )
+ valid= 0
+