From: S.Çağlar Onur Date: Tue, 15 Mar 2011 18:31:44 +0000 (-0400) Subject: remove hardcoded file list X-Git-Tag: bootmanager-4.3-24~1 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=926feb6af0dcdfd3348a3c8dc0bf27a936798505 remove hardcoded file list --- diff --git a/source/steps/WriteModprobeConfig.py b/source/steps/WriteModprobeConfig.py index 81f01bd..b954c64 100644 --- a/source/steps/WriteModprobeConfig.py +++ b/source/steps/WriteModprobeConfig.py @@ -59,7 +59,7 @@ def Run( vars, log, filename = "/etc/modprobe.conf"): m.input(mfile) blacklist = modprobe.Modprobe() - blacklistfiles = ("blacklist","blacklist-compat","blacklist-firewire") + blacklistfiles = os.listdir("/etc/modprobe.d") for blf in blacklistfiles: if os.path.exists("/etc/modprobe.d/%s"%blf): blacklist.input("/etc/modprobe.d/%s"%blf)