Distribution: Fedora Core 4 and all other RPM based distros Problem Description: The mkspec script can be smarter about managing the lifecycle of an installed kernel. There are two "bugs" addressed by this patch, and one enhancement that WorksForMe. The RPM build should always clean its %buildroot ($RPM_BUILD_ROOT) because it is the one who fills it. If not, you ends up with two copies of the kernel, one in the rpm and one in %buildroot. The RPM build should be smarter about detecting CONFIG_DRM, because a kernel can provide kernel-drm if the CONFIG_DRM=m as well. The enhancement is to include %post and %postun scripts that run mkinitrd and grubby to register the new kernel with the system boot loader. Steps to reproduce: 1. unpack kernel source 2. patch -p1 < mkspec.patch 3. make binrpm-pkg 4. enjoy I'm sorry, I didn't see how to flag this as "request for enhancement".
Created attachment 6852 [details] Patch against scripts/package/mkspec
This should go to linux-kernel@vger.kernel.org rather than bugzilla. enhancements don't really get tracked here.