diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/modules/any_conf.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/modules/any_conf.pm b/perl-install/modules/any_conf.pm index c7ce2a475..c6174fd81 100644 --- a/perl-install/modules/any_conf.pm +++ b/perl-install/modules/any_conf.pm @@ -104,6 +104,10 @@ sub remove_alias_regexp_byname { sub remove_module { my ($conf, $module) = @_; $module = $conf->mapping($module); + substInFile { + undef $_ if /^$module/; + } $_ foreach "$::prefix/etc/modules", "$::prefix/etc/modprobe.preload"; + $conf->remove_alias($module); log::explanations("removing module $module"); delete $conf->{$module}; |