How to update a linux kernel on a small boot partition
I am running Windows and OpenSuse in dual boot with GRUB. Since my /boot partition is only 40MB, updating the kernel is not as simple as running yast2.
Here are the steps required to update the kernel:
- boot into single user mode and log in as root
- umount /boot -> mounted drive (on /dev/sda1) is shadowing an existing /boot one
- mount /dev/sda1 /mnt/boot
- run yast and update the kernel files on the shadowed /boot drive
- backup the original kernel files from /mnt/boot
- remove the original kernel files and grub.cfg from /mnt/boot
- copy the new kernel files and grub.cfg from /boot to /mnt/boot
- reboot