X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallWriteConfig.py;h=f0595075d4b3523ea41e4fa6c2b836e3786e1f1b;hb=bb5fbc8ba39ef808bff8f2ec5c2eda7c11b5304e;hp=b6038c974ee8eee64cc03b980af5ea76bc1bcb53;hpb=7ede7da6a249817501dcc0fada767a87a9830c3f;p=bootmanager.git diff --git a/source/steps/InstallWriteConfig.py b/source/steps/InstallWriteConfig.py index b6038c9..f059507 100644 --- a/source/steps/InstallWriteConfig.py +++ b/source/steps/InstallWriteConfig.py @@ -46,8 +46,7 @@ from Exceptions import * import utils from systeminfo import systeminfo import BootAPI - -from GetAndUpdateNodeDetails import SMP_OPT +import ModelOptions def Run( vars, log ): @@ -231,7 +230,7 @@ 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", "") @@ -421,7 +420,7 @@ def write_modprobeconf_file( vars, log, filename = "/etc/modprobe.conf"): # 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", "")