X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInitializeBootManager.py;h=cab0d971b13163833f745229ccb6d05c6b2f72d8;hb=329c270b11986471af41490abfb471618cd6a97a;hp=c037a0eb4c48360f73edd5fbf88d2dc009f1f168;hpb=058804ef1dd26ffb3f230b9a93f1e170e6e87291;p=bootmanager.git diff --git a/source/steps/InitializeBootManager.py b/source/steps/InitializeBootManager.py index c037a0e..cab0d97 100644 --- a/source/steps/InitializeBootManager.py +++ b/source/steps/InitializeBootManager.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# $Id$ + # Copyright (c) 2003 Intel Corporation # All rights reserved. # @@ -39,6 +41,10 @@ def Run( vars, log ): log.write( "\n\nStep: Initializing the BootManager.\n" ) + # Default model option. Required in case we go into debug mode + # before we successfully called GetAndUpdateNodeDetails(). + vars["NODE_MODEL_OPTIONS"] = vars.get("NODE_MODEL_OPTIONS",0) + # define the basic partition paths PARTITIONS= {} PARTITIONS["root"]= "/dev/planetlab/root" @@ -68,23 +74,11 @@ def Run( vars, log ): BOOT_CD_VERSION= vars['BOOT_CD_VERSION'] - # old cds need extra modules loaded for compaq smart array - if BOOT_CD_VERSION[0] == 2: - - has_smartarray= utils.sysexec_noerr( - 'lspci | egrep "0e11:b178|0e11:4070|0e11:4080|0e11:4082|0e11:4083"') - - if has_smartarray: - log.write( "Loading support for Compaq smart array\n" ) - utils.sysexec_noerr( "modprobe cciss", log ) - _create_cciss_dev_entries() - - - has_fusion= utils.sysexec_noerr('lspci | egrep "1000:0030"') - - if has_fusion: - log.write( "Loading support for Fusion MPT SCSI controllers\n" ) - utils.sysexec_noerr( "modprobe mptscsih", log ) + # In case we are booted with a kernel that does not have the + # device mapper code compiled into the kernel. + if not os.path.exists("/dev/mapper"): + log.write( "Loading support for LVM\n" ) + utils.sysexec_noerr( "modprobe dm_mod", log ) # for anything that needs to know we are running under the boot cd and # not the runtime os