efibootmgr: fix post-remove kernel hook
Don't attempt to delete nonexistent UEFI entries from previous kernel versions. Fixes #13133
This commit is contained in:
parent
22a2b23d21
commit
c6c970e142
2 changed files with 2 additions and 2 deletions
|
@ -18,4 +18,4 @@ major_version=$(echo $PKGNAME | cut -c 6-)
|
|||
hexnum=$(efibootmgr | grep "Void Linux with kernel ${major_version}" | cut -c "5-8")
|
||||
|
||||
# delete it
|
||||
efibootmgr -Bq -b $hexnum
|
||||
[ "$hexnum" ] && efibootmgr -Bq -b $hexnum
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'efibootmgr'
|
||||
pkgname=efibootmgr
|
||||
version=17
|
||||
revision=5
|
||||
revision=6
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libefivar-devel popt-devel"
|
||||
short_desc="Tool to modify UEFI Firmware Boot Manager Variables"
|
||||
|
|
Loading…
Reference in a new issue