Bug 1266949

Summary: dnf distro-sync --allowerasing --releasever=23 --exclude='kernel*' removes all versions of the kernel
Product: [Fedora] Fedora Reporter: Bruno Wolff III <bruno>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: bruno, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-13 13:24:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Raw typescript file from problematic upgrade none

Description Bruno Wolff III 2015-09-28 15:54:58 UTC
User-Agent:       
Build Identifier: 

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.

Reproducible: Always

Comment 1 Bruno Wolff III 2015-09-28 16:21:40 UTC
Just using dnf distro-sync --allowerasing --exclude='kernel*' doesn't trigger the bug. I mostly have rawhide nodebug kernels installed.

Comment 2 Bruno Wolff III 2015-09-28 16:25:03 UTC
dnf distro-sync --allowerasing --exclude='kernel*' --disablerepo=fedora-rawhide-kernel-nodebug didn't trigger the issue either.

Comment 3 Bruno Wolff III 2015-09-28 16:32:58 UTC
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.

Comment 4 Honza Silhan 2015-10-13 13:24:06 UTC

*** This bug has been marked as a duplicate of bug 1260989 ***