]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
kbuild/mkspec: support 'update-bootloader'-based systems
authorJiri Kosina <jkosina@suse.cz>
Thu, 7 Apr 2016 13:00:54 +0000 (15:00 +0200)
committerMichal Marek <mmarek@suse.com>
Wed, 20 Apr 2016 08:01:30 +0000 (10:01 +0200)
commit27c3bffd230abd0a598586aed0fe0ba7b61e0e2e
treef1f2c3b14d6de2dd5aa8971494245b35d30ef5ff
parentf931362b38191016b7a6dc31d90a515b37658e02
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: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/package/mkspec