Skip to content
Commit 27c3bffd authored by Jiri Kosina's avatar Jiri Kosina Committed by Michal Marek
Browse files

kbuild/mkspec: support 'update-bootloader'-based systems



When uninstalling kernel RPM, we're unconditionally calling
"new-kernel-pkg --remove". This is useless on systems which are based on
'update-bootloader' script instead.

Support update-bootloader removal method as well in case the script is
present; contrary to new-kernel-pkg, this needs to be done in %postun,
otherwise update-bootloader will refuse to remove entry for kernel for
which the binary still exists.

Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent f931362b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment