]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild/mkspec: fix grub2 installkernel issue
authorJiri Kosina <jkosina@suse.cz>
Fri, 26 Feb 2016 15:15:17 +0000 (16:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 14:33:42 +0000 (07:33 -0700)
commit84cc3bee5e2322e137e311aa2f16e100040afd74
treecb520d824142959f55105881ff1de56c40cbcc13
parent96948d63f84ece478a4bdb22ea09e1cd7d5b2b8f
kbuild/mkspec: fix grub2 installkernel issue

commit c8b08ca558c0067bc9e15ce3f1e70af260410bb2 upstream.

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 <jkosina@suse.cz>
Fixes: 3c9c7a14b627 ("rpm-pkg: add %post section to create initramfs and grub hooks")
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/package/mkspec