linux/scripts/package
Jiri Kosina 24a748be97 kbuild/mkspec: fix grub2 installkernel issue
commit c8b08ca558 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: 3c9c7a14b6 ("rpm-pkg: add %post section to create initramfs and grub hooks")
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-05-01 00:05:51 +02:00
..
builddeb builddeb: put the dbg files into the correct directory 2014-11-03 10:40:44 +00:00
buildtar kbuild: Fix tar-pkg with relative $(objtree) 2014-06-18 17:34:59 +02:00
Makefile kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
mkspec kbuild/mkspec: fix grub2 installkernel issue 2016-05-01 00:05:51 +02:00