PDA

View Full Version : SLES 12 SP3 How to prevent SUSE from removing old kernels



shailensobhee
13-Aug-2018, 15:03
Hello,

I have a major problem that all new SUSE kernels have microcode problems and do not boot anymore. Anyway, that's not the issue right now. I really really need to tell SUSE to stop deleting my old working kernels when I do zypper update.

Only one old kernel was bootable, and now it's gone. I have the SUSE DVD2 where I have the old default kernel. I can boot in Rescue mode from that DVD2. What are the steps to re-install that kernel, and make is the new default in Grub?

Thanks,

Shailen

malcolmlewis
13-Aug-2018, 19:22
Hi and welcome to the Forum :)
The kernels to keep is in the /etc/zypper/zypp.conf file in the part multiversion.kernels, configure as required (there is info in the file on what to do).

You will need to boot from the install media (DVD1 not 2) and then the following should get your default kernel back;


mount /dev/sdXn /mnt

mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys

chroot /mnt
zypper in </path/to/the kernel you want>
(should rebuild grub)

exit
sync
umount /mnt/dev /mnt/proc /mnt/sys
sync
systemctl reboot