User Generated Kernel apk Will Not Boot
Description of Problem
Following wiki instructions to generate my own kernel apk, the apk will not boot up into the new kernel causing the machine to be stuck. I’m running this on ppc64le.
Expected Results
apk add linux-vanilla-4.14.47-r0.apk
reboot
new kernel version running
- uname -r 4.14.47
Actual Results
After a reboot Alpine cannot find vmlinuz file.
There is no kernel executable files so machine is stuck. No choice but
to re-install OS.
Description of Problem
Following directions here
https://wiki.alpinelinux.org/wiki/Custom\_Kernel on master branch of
aports,
I generated a linux-vanilla-4.14.47-r0.apk This apk will install
properly however there are a couple issues with this:
- it overwrites any other vmlinuz/initrd files in /boot
- GRUB is not updated
The issue stems from the fact that GRUB is looking for a vmlinuz file however the user created kernel apk generates a vmlinuz-vanilla file and that’s not what GRUB wants.
Possible Solutions:
- After installing kernel apk, rename /boot/vmlinuz-vanilla to /boot/vmlinuz
- Do not overwrite kernel files in /boot after installing kernel apk
- Update GRUB
Since kernel is generated with abuild -rK, this command should be updated with a possible solution above.
Thanks.
(from redmine: issue id 8966, created on 2018-06-05, closed on 2019-05-04)