andreyv / sbupdate

Generate and sign kernel images for UEFI Secure Boot on Arch Linux
GNU General Public License v3.0
225 stars 20 forks source link

update vmlinuz location according to archlinux changes #18

Closed freswa closed 4 years ago

freswa commented 4 years ago

As discussed on the archlinux mailing list, archlinux is heading for a more modular initcpio packaging. The latest changes in the testing repo move remove the vmlinuz from /boot/vmlinuz- to /usr/lib/modules//vmlinuz. This PR adopts the new location change in the sbupdate script and in the pacman hook.

Maryse47 commented 4 years ago

To clarify: Arch kernels always installed vmlinuz in two places /usr/lib/modules/*/vmlinuz and /boot/vmlinuz-$pkgbase. Now they will install only the former and the latter will be created by mkinitcpio hook.

freswa commented 4 years ago

Thanks for pointing me to that. I've revised the PR comment above.

andreyv commented 4 years ago

One problem is that the pacman hook is currently PostTransaction, so when a kernel is being removed, /usr/lib/modules/<VER>/pkgbase already doesn't exist.

I pushed a reworked version in e7de1fb31ac6795ef1e1746e5780f84c948f999d. You can check that it works.

freswa commented 4 years ago

Works for me. Thanks!