[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAROirdNKSFD-X9vBr5nJ4Ys7rn4H-0UF8+p6CR8PqqkfA@mail.gmail.com>
Date: Fri, 13 Apr 2018 23:22:19 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Javier Martinez Canillas <javierm@...hat.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Peter Jones <pjones@...hat.com>,
Paolo Abeni <pabeni@...hat.com>,
Josh Boyer <jwboyer@...hat.com>,
Michal Marek <michal.lkml@...kovi.net>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCH] kbuild: rpm-pkg: use kernel-install as a fallback for new-kernel-pkg
2018-04-12 3:15 GMT+09:00 Javier Martinez Canillas <javierm@...hat.com>:
> The new-kernel-pkg script is only present when grubby is installed, but it
> may not always be the case. So if the script isn't present, attempt to use
> the kernel-install script as a fallback instead.
>
> Signed-off-by: Javier Martinez Canillas <javierm@...hat.com>
>
> ---
>
Applied to linux-kbuild. Thanks!
> scripts/package/mkspec | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/package/mkspec b/scripts/package/mkspec
> index 61427c6f2209..e05646dc24dc 100755
> --- a/scripts/package/mkspec
> +++ b/scripts/package/mkspec
> @@ -118,6 +118,8 @@ $S$M ln -sf /usr/src/kernels/$KERNELRELEASE source
> %preun
> if [ -x /sbin/new-kernel-pkg ]; then
> new-kernel-pkg --remove $KERNELRELEASE --rminitrd --initrdfile=/boot/initramfs-$KERNELRELEASE.img
> + elif [ -x /usr/bin/kernel-install ]; then
> + kernel-install remove $KERNELRELEASE
> fi
>
> %postun
> --
> 2.14.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists