Red Hat Bugzilla – Bug 1266949
dnf distro-sync --allowerasing --releasever=23 --exclude='kernel*' removes all versions of the kernel
Last modified: 2015-10-13 09:24:06 EDT
When I tried dnf distro-sync --allowerasing --releasever=23 I got an error because dnf was going to remove the running kernel. So I tried dnf distro-sync --allowerasing --releasever=23 --exclude='kernel*' figuring that would skip any kernel updates. Instead they were all removed. If you notice before you reboot it is fixable. But if you don't, lots of fun can be involved. Especially with very old hardware.
Just using dnf distro-sync --allowerasing --exclude='kernel*' doesn't trigger the bug. I mostly have rawhide nodebug kernels installed.
dnf distro-sync --allowerasing --exclude='kernel*' --disablerepo=fedora-rawhide-kernel-nodebug didn't trigger the issue either.
Created attachment 1077993 [details]
Raw typescript file from problematic upgrade
The typescript file is raw and has terminal escape sequences in it. (I started out using vi to fix some repo files pointing to a local mirror of f23.) But it might provide some insight into why the kernels all got removed.
*** This bug has been marked as a duplicate of bug 1260989 ***