Explicit kernel module load at startupsystemd: automate modprobe command at boot timeWhat does 'make...
Was there a shared-world project before "Thieves World"?
How to not starve gigantic beasts
Contradiction proof for inequality of P and NP?
Can I grease a crank spindle/bracket without disassembling the crank set?
Is it idiomatic to construct against `this`
Elements other than carbon that can form many different compounds by bonding to themselves?
I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?
What's the polite way to say "I need to urinate"?
How to write a column outside the braces in a matrix?
How to stop co-workers from teasing me because I know Russian?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
How to pronounce 'c++' in Spanish
Re-entry to Germany after vacation using blue card
a sore throat vs a strep throat vs strep throat
Who was the lone kid in the line of people at the lake at the end of Avengers: Endgame?
How would 10 generations of living underground change the human body?
Like totally amazing interchangeable sister outfits II: The Revenge
Aligning equation numbers vertically
Minor Revision with suggestion of an alternative proof by reviewer
Multiple options vs single option UI
How exactly does Hawking radiation decrease the mass of black holes?
What is the smallest unit of eos?
Pulling the rope with one hand is as heavy as with two hands?
What are the steps to solving this definite integral?
Explicit kernel module load at startup
systemd: automate modprobe command at boot timeWhat does 'make localmodconfig' do?systemd-modules-load print errors when loading builtin kernel modulesTrigger an init script when a specific device is up and a kernel module has been loadedAutoloading externally compiled module at hotplug eventbluetooth - btusb - How to replace module version with a newer oneVirtualBox kernel modules will not load via systemdHow to prevent a kernel module video driver to probe a specific graphic card deviceWrong kernel module getting loaded for fiber interfacesOverride modprobe.d blacklistgrsec causes coredump of application and kernel panicCrypto CBC module doesn't show up in /proc/crypto
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm using grsecurity kernel which disallows automatic kernel load thus several systemd services don't work. After manually loading modules with modprobe and restarting module everything works correctly but it's quite dirty solution. I'd like to do it "properly" during startup.
OS is Arch linux with grsec kernel.
kernel-modules startup grsecurity
add a comment |
I'm using grsecurity kernel which disallows automatic kernel load thus several systemd services don't work. After manually loading modules with modprobe and restarting module everything works correctly but it's quite dirty solution. I'd like to do it "properly" during startup.
OS is Arch linux with grsec kernel.
kernel-modules startup grsecurity
1
Could you possibly rewrite parts of theinitscript that's found in the initramfs to perform the steps you require?
– Hydranix
Feb 4 '17 at 4:28
Well.. I don't think i know any way to make it update-persistent
– Lapsio
Feb 4 '17 at 4:33
A very dirty way that I've used once before what to set the immutable flag on the init file. You can always create a custom hook file and add it to the mkinitcpio.conf
– Hydranix
Feb 4 '17 at 4:41
add a comment |
I'm using grsecurity kernel which disallows automatic kernel load thus several systemd services don't work. After manually loading modules with modprobe and restarting module everything works correctly but it's quite dirty solution. I'd like to do it "properly" during startup.
OS is Arch linux with grsec kernel.
kernel-modules startup grsecurity
I'm using grsecurity kernel which disallows automatic kernel load thus several systemd services don't work. After manually loading modules with modprobe and restarting module everything works correctly but it's quite dirty solution. I'd like to do it "properly" during startup.
OS is Arch linux with grsec kernel.
kernel-modules startup grsecurity
kernel-modules startup grsecurity
asked Feb 4 '17 at 4:07
LapsioLapsio
606719
606719
1
Could you possibly rewrite parts of theinitscript that's found in the initramfs to perform the steps you require?
– Hydranix
Feb 4 '17 at 4:28
Well.. I don't think i know any way to make it update-persistent
– Lapsio
Feb 4 '17 at 4:33
A very dirty way that I've used once before what to set the immutable flag on the init file. You can always create a custom hook file and add it to the mkinitcpio.conf
– Hydranix
Feb 4 '17 at 4:41
add a comment |
1
Could you possibly rewrite parts of theinitscript that's found in the initramfs to perform the steps you require?
– Hydranix
Feb 4 '17 at 4:28
Well.. I don't think i know any way to make it update-persistent
– Lapsio
Feb 4 '17 at 4:33
A very dirty way that I've used once before what to set the immutable flag on the init file. You can always create a custom hook file and add it to the mkinitcpio.conf
– Hydranix
Feb 4 '17 at 4:41
1
1
Could you possibly rewrite parts of the
init script that's found in the initramfs to perform the steps you require?– Hydranix
Feb 4 '17 at 4:28
Could you possibly rewrite parts of the
init script that's found in the initramfs to perform the steps you require?– Hydranix
Feb 4 '17 at 4:28
Well.. I don't think i know any way to make it update-persistent
– Lapsio
Feb 4 '17 at 4:33
Well.. I don't think i know any way to make it update-persistent
– Lapsio
Feb 4 '17 at 4:33
A very dirty way that I've used once before what to set the immutable flag on the init file. You can always create a custom hook file and add it to the mkinitcpio.conf
– Hydranix
Feb 4 '17 at 4:41
A very dirty way that I've used once before what to set the immutable flag on the init file. You can always create a custom hook file and add it to the mkinitcpio.conf
– Hydranix
Feb 4 '17 at 4:41
add a comment |
2 Answers
2
active
oldest
votes
It'll depend somewhat on your init system (systemd, or ..)
But the options are:
kernel command line parameter
modules_load=
/etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
For desktop/laptops, people usually expect to be able to plug in devices and for the driver modules to load.
If this isn't your use case, you could also look at compiling the kernel with the relevant module code statically linked in (so no module loading occurs at all) and disabling the module system entirely. There are limits on kernel binary size (limiting number of modules that can be compiled statically) on 32-bit architectures.
See : "make localmodconfig"
Related : using sysctl to prevent further module loading
Related: Fedora, loading modules at startup
add a comment |
Modules are automatically loaded after kernel boot by placing a conf file in /etc/modules-load.d/mymodules.conf.
# Modules to load.
mymodule.ko
That's it, you're good to go.
You may also blacklist modules that are not to be loaded. The usual place for blacklisted modules is in /etc/modprobe.d. Create a conf file here, and list the
modules that are never to be loaded.
# Modules to prevent from loading.
blacklist mybadmodule.ko
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342417%2fexplicit-kernel-module-load-at-startup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It'll depend somewhat on your init system (systemd, or ..)
But the options are:
kernel command line parameter
modules_load=
/etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
For desktop/laptops, people usually expect to be able to plug in devices and for the driver modules to load.
If this isn't your use case, you could also look at compiling the kernel with the relevant module code statically linked in (so no module loading occurs at all) and disabling the module system entirely. There are limits on kernel binary size (limiting number of modules that can be compiled statically) on 32-bit architectures.
See : "make localmodconfig"
Related : using sysctl to prevent further module loading
Related: Fedora, loading modules at startup
add a comment |
It'll depend somewhat on your init system (systemd, or ..)
But the options are:
kernel command line parameter
modules_load=
/etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
For desktop/laptops, people usually expect to be able to plug in devices and for the driver modules to load.
If this isn't your use case, you could also look at compiling the kernel with the relevant module code statically linked in (so no module loading occurs at all) and disabling the module system entirely. There are limits on kernel binary size (limiting number of modules that can be compiled statically) on 32-bit architectures.
See : "make localmodconfig"
Related : using sysctl to prevent further module loading
Related: Fedora, loading modules at startup
add a comment |
It'll depend somewhat on your init system (systemd, or ..)
But the options are:
kernel command line parameter
modules_load=
/etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
For desktop/laptops, people usually expect to be able to plug in devices and for the driver modules to load.
If this isn't your use case, you could also look at compiling the kernel with the relevant module code statically linked in (so no module loading occurs at all) and disabling the module system entirely. There are limits on kernel binary size (limiting number of modules that can be compiled statically) on 32-bit architectures.
See : "make localmodconfig"
Related : using sysctl to prevent further module loading
Related: Fedora, loading modules at startup
It'll depend somewhat on your init system (systemd, or ..)
But the options are:
kernel command line parameter
modules_load=
/etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
For desktop/laptops, people usually expect to be able to plug in devices and for the driver modules to load.
If this isn't your use case, you could also look at compiling the kernel with the relevant module code statically linked in (so no module loading occurs at all) and disabling the module system entirely. There are limits on kernel binary size (limiting number of modules that can be compiled statically) on 32-bit architectures.
See : "make localmodconfig"
Related : using sysctl to prevent further module loading
Related: Fedora, loading modules at startup
answered Aug 22 '17 at 9:03
jmulleejmullee
37815
37815
add a comment |
add a comment |
Modules are automatically loaded after kernel boot by placing a conf file in /etc/modules-load.d/mymodules.conf.
# Modules to load.
mymodule.ko
That's it, you're good to go.
You may also blacklist modules that are not to be loaded. The usual place for blacklisted modules is in /etc/modprobe.d. Create a conf file here, and list the
modules that are never to be loaded.
# Modules to prevent from loading.
blacklist mybadmodule.ko
add a comment |
Modules are automatically loaded after kernel boot by placing a conf file in /etc/modules-load.d/mymodules.conf.
# Modules to load.
mymodule.ko
That's it, you're good to go.
You may also blacklist modules that are not to be loaded. The usual place for blacklisted modules is in /etc/modprobe.d. Create a conf file here, and list the
modules that are never to be loaded.
# Modules to prevent from loading.
blacklist mybadmodule.ko
add a comment |
Modules are automatically loaded after kernel boot by placing a conf file in /etc/modules-load.d/mymodules.conf.
# Modules to load.
mymodule.ko
That's it, you're good to go.
You may also blacklist modules that are not to be loaded. The usual place for blacklisted modules is in /etc/modprobe.d. Create a conf file here, and list the
modules that are never to be loaded.
# Modules to prevent from loading.
blacklist mybadmodule.ko
Modules are automatically loaded after kernel boot by placing a conf file in /etc/modules-load.d/mymodules.conf.
# Modules to load.
mymodule.ko
That's it, you're good to go.
You may also blacklist modules that are not to be loaded. The usual place for blacklisted modules is in /etc/modprobe.d. Create a conf file here, and list the
modules that are never to be loaded.
# Modules to prevent from loading.
blacklist mybadmodule.ko
answered 9 mins ago
rickfoosusarickfoosusa
1013
1013
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342417%2fexplicit-kernel-module-load-at-startup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Could you possibly rewrite parts of the
initscript that's found in the initramfs to perform the steps you require?– Hydranix
Feb 4 '17 at 4:28
Well.. I don't think i know any way to make it update-persistent
– Lapsio
Feb 4 '17 at 4:33
A very dirty way that I've used once before what to set the immutable flag on the init file. You can always create a custom hook file and add it to the mkinitcpio.conf
– Hydranix
Feb 4 '17 at 4:41