rebuild initrd for new modules and modprobe rules - #185
Closed
jcfrosty wants to merge 1 commit into
Closed
Conversation
**WARNING: DO NOT MERGE THIS PR IF ADDITIONAL KERNEL MODULES ARE ADDED BY DEFAULT IN THE ISO!** Adding kernel modules can result in the need to add the modules to the initramfs for proper early boot support. (KMS for example) Adding kernel modules can also add modprobe rules to /etc/modprobe.d/ . Those rules will not take affect until the initramfs is rebuilt and included.
Contributor
|
This is possible if you manage the finalizer in this way: https://github.com/geaaru/luet-specs/blob/master/packages/kernels/mocaccino-lts/finalize.yaml#L3 and then you added this in iso specs: and there is this PR: In general, you skip the command |
geaaru
reviewed
Aug 21, 2021
| @@ -1,2 +1,3 @@ | |||
| install: | |||
| - depmod -a No newline at end of file | |||
| - depmod -a | |||
Contributor
There was a problem hiding this comment.
https://github.com/geaaru/luet-specs/blob/master/packages/kernels/mocaccino-lts/finalize.yaml#L2
It's better to specify the kernel version to elaborate because by default it uses the running kernel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WARNING: DO NOT MERGE THIS PR IF ADDITIONAL KERNEL MODULES ARE ADDED BY DEFAULT IN THE ISO!
Adding kernel modules can result in the need to add the modules to the initramfs for proper early boot support. (KMS for example)
Adding kernel modules can also add modprobe rules to /etc/modprobe.d/ . Those rules will not take affect until the initramfs is rebuilt and included.