Update to allow multiple kernel to co-exist
This is the diff to update the linux-rpi4-mainline package to allow multiple kernels (mostly with upstream kernel) co-exist.
The modifications are:
-
New install file No update to config.txt Thus completely rely on Uboot or other bootloader to load.
Thus feel free to add optional dependency to uboot-raspberrypi (Of course, uboot-raspberrypi and linux also needs update to remove conflicts/provides at the same time)
-
New kernel naming
Now it will be call /boot/Image-rpi4-mainline
-
New pacman hooks and new mkinitramfs preset
Now the initramfs will be called /boot/initramfs-rpi4-mainline.img And will automatically rebuild the initramfs using pacman hook
Of course, this update will break existing users' setup.
Thus we may still find a way to make uboot-raspberrypi to be installed for users who update to this kernel version. And we can't go the Archlinux way to just put an warning and expect regular end users to follow the instructions.
Thus maybe uboot-raspberrypi needs to be a hard dependency then. diff