# find / -xdev -name z50-raspi-firmware
/etc/kernel/postinst.d/z50-raspi-firmware
/etc/kernel/postrm.d/z50-raspi-firmware
/etc/initramfs/post-update.d/z50-raspi-firmware
Look in those files.
Or install a bootmanager, GRUB is used mostly for PC's, I use extlinux own script and some generator tooling as well. But It all depends if you can deal with or allow another/extra bootloader and or firmware. Normal Debian and other generic distros using GRUB can handle many installed kernels, set a default one, boot other OSses like Windows. So make sure you don't waste your time on re-inventing the wheel, I have done too much I can say.
So why do you compile own kernels? What is the objective?
If you want easy creation of Debian packages, so also apt install and removal, I use Armbian build for it, see for example viewtopic.php?p=2293564&hilit=%22compile.sh%22#p2292898
/etc/kernel/postinst.d/z50-raspi-firmware
/etc/kernel/postrm.d/z50-raspi-firmware
/etc/initramfs/post-update.d/z50-raspi-firmware
Look in those files.
Or install a bootmanager, GRUB is used mostly for PC's, I use extlinux own script and some generator tooling as well. But It all depends if you can deal with or allow another/extra bootloader and or firmware. Normal Debian and other generic distros using GRUB can handle many installed kernels, set a default one, boot other OSses like Windows. So make sure you don't waste your time on re-inventing the wheel, I have done too much I can say.
So why do you compile own kernels? What is the objective?
If you want easy creation of Debian packages, so also apt install and removal, I use Armbian build for it, see for example viewtopic.php?p=2293564&hilit=%22compile.sh%22#p2292898
Statistics: Posted by redvli — Thu Dec 11, 2025 8:22 am