Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mkosi.initrd.extra files to initrd. #3169

Closed
wants to merge 4 commits into from

Conversation

plastikos
Copy link

This adds the processing of mkosi.initrd.extra - similar to mkosi.extra but for adding files to the initrd.

@DaanDeMeyer
Copy link
Contributor

@plastikos We don't really want to duplicate more settings for the default initrd. What you can do instead is build the initrd as mkosi.images/initrd and then you can use all the existing mkosi settings for your initrd. For example we do this in the systemd repo: https://github.com/systemd/systemd/tree/main/mkosi.images/initrd. You can use the initrd in your main image with the Initrds= setting (see https://github.com/systemd/systemd/blob/main/mkosi.conf#L53).

@plastikos
Copy link
Author

plastikos commented Nov 5, 2024

@DaanDeMeyer, I'll check it out. My concern is if I want a small change to the built-in initrd build do I have to replicate all of the details or can I simply add the small difference.

@DaanDeMeyer
Copy link
Contributor

@DaanDeMeyer, I'll check it out. My concern is if I want a small change to the built-in initrd build do I have to replicate all of the details or can I simply add the small difference.

@plastikos You add Include=mkosi-initrd to the config in mkosi.images/initrd and you get the default initrd almost the same as you would now.

@plastikos plastikos closed this Nov 6, 2024
@plastikos
Copy link
Author

Redundant to existing functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants