Control: tag -1 patch On Fri, 2012-06-29 at 13:35 -0700, Zack Weinberg wrote: > Package: initramfs-tools > Version: 0.106 > Severity: normal > > No matter how I configure the initramfs, I always get the warning message > > modprobe: no module unix found in modules.dep > > on boot. [...] I've been meaning to fix this for a while. It seems to be a bug in the minimal implementation of modprobe used in the initramfs, part of 'busybox'. I'm attaching a patch that seems to do the right thing, which I hope the busybox maintainer will apply. Ben. -- Ben Hutchings 73.46% of all statistics are made up.
From: Ben Hutchings <ben@decadent.org.uk>
Subject: modprobe: Read modules.builtin
Bug-Debian: http://bugs.debian.org/679571
This suppresses warnings for explicit probing of potential modules
that are actually built-in.
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -595,6 +595,11 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL & ~PARSE_GREEDY))
get_or_add_modentry(s)->flags |= MODULE_FLAG_LOADED;
config_close(parser);
+
+ parser = config_open2("modules.builtin", fopen_for_read);
+ while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL))
+ get_or_add_modentry(s)->flags |= MODULE_FLAG_LOADED;
+ config_close(parser);
}
if (opt & (OPT_INSERT_ALL | OPT_REMOVE)) {
Attachment:
signature.asc
Description: This is a digitally signed message part