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

implement kernel hook #12

Open
3 of 5 tasks
stapelberg opened this issue Jun 21, 2019 · 6 comments
Open
3 of 5 tasks

implement kernel hook #12

stapelberg opened this issue Jun 21, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@stapelberg
Copy link
Member

stapelberg commented Jun 21, 2019

  • /out/vmlinuz needs to be copied to /boot/vmlinuz-<pkg-version>
  • build initramfs in /boot/initramfs-<pkg-version>.img
  • PKG_CONFIG_PATH=/ro/systemd-amd64-239-7/out/share/pkgconfig/ dracut --debug --force /boot/initramfs-5.1.9.img 5.1.9
  • when exactly should it be built? dracut copies a bunch of packages which may be good to update first in their entirety? i.e. defer the hook (add atexit hook list to cmd/distri/distri.go) instead of running it immediately?
  • run grub-mkconfig via /etc/update-grub (created by distri pack)
  • run grub-install (maybe from /etc/update-grub)?
  • remove the files when gc removes the package
@stapelberg
Copy link
Member Author

Only the gc item is left, demoting from release-blocker to enhancement.

@stapelberg stapelberg added the enhancement New feature or request label Jun 29, 2019
@stapelberg
Copy link
Member Author

We need to run /etc/update-grub after the initrd was generated.

@stapelberg
Copy link
Member Author

This can be fixed after the release because updates first install distri1 updates. Removing release-blocker label.

@miniBill
Copy link

From experience with Debian, you want initrd build/cleanup to happen atexit, otherwise you get to the paradoxical and slow situation where it gets rebuilt n times if you update kernel, firmware, and VirtualBox at the same time

@stapelberg
Copy link
Member Author

Yep, we already do this :)

@miniBill
Copy link

Sorry, I misread the subitem in the original post as not done yet =)
Godspeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants