scripts/prune-kernel: Use kernel-install if available
authorReza Arbab <arbab@linux.ibm.com>
Wed, 4 May 2022 21:27:14 +0000 (16:27 -0500)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 11 May 2022 12:46:38 +0000 (21:46 +0900)
commit5d53508d1bae79a84840bcfd3c45094d2081d6d2
tree3872e44379ab701be133ea3fcd876f1036dbd90a
parentf774f5bb87d132b48bc4a99598c45f35121ac054
scripts/prune-kernel: Use kernel-install if available

If the new-kernel-pkg utility isn't present, try using kernel-install.
This is what the %preun scriptlet in scripts/package/mkspec does too.

Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/prune-kernel