From: Thierry Parmentelat Date: Sat, 24 May 2008 16:18:31 +0000 (+0000) Subject: dont unload cpqphp X-Git-Tag: BootManager-3.2-7~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=51f58f3b0fb0da0f169ea14ef64e9a91ff45d1dd;p=bootmanager.git dont unload cpqphp --- diff --git a/source/steps/ChainBootNode.py b/source/steps/ChainBootNode.py index 2e7a5da..d241268 100644 --- a/source/steps/ChainBootNode.py +++ b/source/steps/ChainBootNode.py @@ -198,13 +198,16 @@ def Run( vars, log ): utils.sysexec_noerr( "umount -a -r -t ext2,ext3", log ) utils.sysexec_noerr( "modprobe -r lvm-mod", log ) + # modules that should not get unloaded + # unloading cpqphp causes a kernel panic + blacklist = [ "floppy", "cpqphp" ] try: modules= file("/tmp/loadedmodules","r") for line in modules: module= string.strip(line) - if module == "floppy": - log.write("Skipping unload of floppy kernel module.\n") + if module in blacklist : + log.write("Skipping unload of kernel module '%s'.\n"%module) elif module != "": log.write( "Unloading %s\n" % module ) utils.sysexec_noerr( "modprobe -r %s" % module, log )