使用 modprobe 插入内核模块时,是否需要按特定顺序指定内核模块?
我在 shell 脚本变量中有一个模块列表,我们将其称为 modulelist
。其中一些模块已经加载。
我正在执行 modprobe -a $modulelist 并遇到分段错误,这是由于正在加载的模块之一造成的。
我的问题是:我是否必须修改变量 modulelist 中指定模块名称的顺序?我认为列表中模块的顺序不会产生影响,因为 modprobe -a 加载模块及其依赖的模块。
I have a list of modules in a shell script variable, lets call it modulelist
. Some of those modules are already loaded.
I am doing modprobe -a $modulelist
and running into a segmentation fault, which is due to one of the modules that is being loaded.
My question is : Do I have to modify the order in which module names are specified in the variable modulelist ? I thought that the order of modules in the list would not make a difference since modprobe -a loads the modules and the modules they depend on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定它对您有多大帮助,但也许您应该尝试使用 --show-depends 或 -n -v 选项运行,看看更多信息是否有助于诊断问题
您可能还想检查与创建依赖项列表有关的 depmod 命令
not sure how much it will help you but maybe you should try to run with either --show-depends or -n -v options and see if more information help diagnose the issue
also you might want to check the depmod command which is concerned with creating dependency list
应该没关系,而且绝对不应该出现段错误。
It shouldn't matter, and it definitely shouldn't segfault.