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 support for mkosi-initrd #132

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aafeijoo-suse
Copy link
Contributor

mkosi provides the mkosi-initrd script [1], which allows to generate initrds locally on the system. Although it is not equivalent in features to dracut, it's a valid alternative with its own benefits in some use cases:

  • Clear ownership of bugs: no 3rd party binary (e.g. dracut) deciding what is installed from each package or even modifying them.
  • Any change on a package configured to be included would automatically apply to the initrd (if the package triggers initrd rebuild).
  • It attempts to shift the maintenance effort from the initrd generator to the responsible package.

To choose which initrd generator will be used, use a new INITRD_GENERATOR option in /etc/sysconfig/bootloader [2][3]. If not defined, the default will still be dracut.

[1] systemd/mkosi@99ca14c
[2] openSUSE/suse-module-tools#106 (comment)
[3] openSUSE/suse-module-tools#106 (comment)

Draft while the matching suse-module-tools PR is open: openSUSE/suse-module-tools#106

OBS PoC repo: https://build.opensuse.org/project/show/home:afeijoo:poc

@aafeijoo-suse
Copy link
Contributor Author

Draft while the matching suse-module-tools PR is open: openSUSE/suse-module-tools#106

Already merged, so this PR is ready for review.

@aafeijoo-suse aafeijoo-suse marked this pull request as ready for review September 5, 2024 06:40
`mkosi` provides the `mkosi-initrd` script [1], which allows to generate initrds
locally on the system. Although it is not equivalent in features to `dracut`,
it's a valid alternative with its own benefits in some use cases:
- Clear ownership of bugs: no 3rd party binary (e.g. dracut) deciding what is
installed from each package or even modifying them.
- Any change on a package configured to be included would automatically apply to
the initrd (if the package triggers initrd rebuild).
- It attempts to shift the maintenance effort from the initrd generator to the
responsible package.

To choose which initrd generator will be used, use a new `INITRD_GENERATOR`
option in `/etc/sysconfig/bootloader`. If not defined, the default will still be
dracut.

[1] systemd/mkosi@99ca14c
@aafeijoo-suse
Copy link
Contributor Author

Since mkosi-v25 will have some nice improvements, I'd wait for that release before adding this.

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.

2 participants