From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933232AbcBZPY2 (ORCPT ); Fri, 26 Feb 2016 10:24:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:41943 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754444AbcBZPY1 (ORCPT ); Fri, 26 Feb 2016 10:24:27 -0500 Subject: Re: [PATCH] kbuild/mkspec: fix grub2 installkernel issue To: "'Jiri Kosina'" References: Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org From: Michal Marek Message-ID: <56D06E29.8060801@suse.com> Date: Fri, 26 Feb 2016 16:24:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-02-26 16:15, Jiri Kosina wrote: > mkspec is copying built kernel to temporrary location > > /boot/vmlinuz-$KERNELRELEASE-rpm > > and runs installkernel on it. This however directly leads to grub2 > menuentry for this suffixed binary being generated as well during the run > of installkernel script. > > Later in the process the temporary -rpm suffixed files are removed, and > therefore we end up with spurious (and non-functional) grub2 menu entries > for each installed kernel RPM. > > Fix that by using a different temporary name (prefixed by '.'), so that > the binary is not recognized as an actual kernel binary and no menuentry > is created for it. > > Signed-off-by: Jiri Kosina Fixes: 3c9c7a14b627 ("rpm-pkg: add %post section to create initramfs and grub hooks") Applied to kbuild.git#misc. Michal