Skip to content

rebuild initrd for new modules and modprobe rules - #185

Closed
jcfrosty wants to merge 1 commit into
masterfrom
jcfrosty-patch-4
Closed

rebuild initrd for new modules and modprobe rules#185
jcfrosty wants to merge 1 commit into
masterfrom
jcfrosty-patch-4

Conversation

@jcfrosty

Copy link
Copy Markdown
Contributor

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.

**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.
@jcfrosty
jcfrosty requested a review from mudler August 13, 2021 16:14
@geaaru

geaaru commented Aug 13, 2021

Copy link
Copy Markdown
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:

https://github.com/mocaccinoOS/mocaccino/blob/funtoo-experimental/specs/funtoo-experimental-makeiso.yaml#L65

and there is this PR:

Luet-lab/luet-makeiso#2

In general, you skip the command mos kernel .. on build iso process.

@@ -1,2 +1,3 @@
install:
- depmod -a No newline at end of file
- depmod -a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@joostruis joostruis closed this Oct 22, 2021
@joostruis
joostruis deleted the jcfrosty-patch-4 branch December 15, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants