import utils
from systeminfo import systeminfo
import BootAPI
-
-from GetAndUpdateNodeDetails import SMP_OPT
+import ModelOptions
def Run( vars, log ):
rootdev.close()
option = ''
- if NODE_MODEL_OPTIONS & SMP_OPT:
+ if NODE_MODEL_OPTIONS & ModelOptions.SMP:
option = 'smp'
initrd= os.readlink( "%s/boot/initrd-boot%s" % (SYSIMG_PATH,option) )
kernel_version= initrd.replace("initrd-", "").replace(".img", "")
# get the kernel version
option = ''
- if NODE_MODEL_OPTIONS & SMP_OPT:
+ if NODE_MODEL_OPTIONS & ModelOptions.SMP:
option = 'smp'
initrd= os.readlink( "%s/boot/initrd-boot%s" % (SYSIMG_PATH,option) )
kernel_version= initrd.replace("initrd-", "").replace(".img", "")