diff options
author | Javier Martinez Canillas <javierm@redhat.com> | 2018-04-11 21:15:24 +0300 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-04-13 17:18:41 +0300 |
commit | eea6f62bc2d67e42dd553181a68984268a03594f (patch) | |
tree | cd1dd267d10c9f3013ec3a323421ce57dbd596af /scripts/package | |
parent | 9564a8cf422d7b58f6e857e3546d346fa970191e (diff) | |
download | linux-eea6f62bc2d67e42dd553181a68984268a03594f.tar.xz |
kbuild: rpm-pkg: use kernel-install as a fallback for new-kernel-pkg
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@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/package')
-rwxr-xr-x | scripts/package/mkspec | 2 |
1 files changed, 2 insertions, 0 deletions
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 |