X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInitializeBootManager.py;h=b419a905bb1b2a3f7db60099f8f15990f9f96664;hb=c104e28ef76af8984380e3a3d71dced9a1a63386;hp=96de44c1bfdbb384d14f22211f3cf10111a05008;hpb=d6db694e5202ff537ed1700442c48b11dbc0180f;p=bootmanager.git diff --git a/source/steps/InitializeBootManager.py b/source/steps/InitializeBootManager.py index 96de44c..b419a90 100644 --- a/source/steps/InitializeBootManager.py +++ b/source/steps/InitializeBootManager.py @@ -70,6 +70,12 @@ def Run( vars, log ): BOOT_CD_VERSION= vars['BOOT_CD_VERSION'] + # 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 os.environ['PL_BOOTCD']= "1"