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

packaging: Add kernel-install hook for booster #279

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

Conversation

tmccombs
Copy link

This allows booster to be used as the initrd_generator with kernel-install (1).

This allows booster to be used as the initrd_generator with
kernel-install (1).

existing_image="$KERNEL_IMAGE%/*}/initrd"
output_path="$KERNEL_INSTALL_STAGING_AREA/initrd"
if [[ -f "$existing_image" ]]; then
Copy link
Author

Choose a reason for hiding this comment

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

This was based on the dracut. I'm not entirely sure when there would be an initrd file next to the kernel.

I also wonder if, if there is an existing "booster-*.img" file for the current kernel in the boot directory, if it should just copy that instead of building a new image.

Copy link
Owner

Choose a reason for hiding this comment

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

This was based on the dracut. I'm not entirely sure when there would be an initrd file next to the kernel.

At Arch Linux booster generates a corresponding initramfs file for each installed kernel. And puts the this generated file next to the kernel binary.

I also wonder if, if there is an existing "booster-*.img" file for the current kernel in the boot directory, if it should just copy that instead of building a new image.

I would say let's do what other tools do already.

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