mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-10-05 21:07:12 +00:00
Add defensive code around calls to db_get
Don't fail if they return errors.
This commit is contained in:
parent
fca6905653
commit
45dce64638
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
shim (15.4-5) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Add defensive code around calls to db_get. Don't fail if they
|
||||||
|
return errors.
|
||||||
|
|
||||||
|
-- Steve McIntyre <93sam@debian.org> Thu, 06 May 2021 00:37:49 +0100
|
||||||
|
|
||||||
shim (15.4-4) unstable; urgency=medium
|
shim (15.4-4) unstable; urgency=medium
|
||||||
|
|
||||||
* Fix up those maintainer scripts - if we're not running on an EFI
|
* Fix up those maintainer scripts - if we're not running on an EFI
|
||||||
|
@ -64,12 +64,12 @@ case $1 in
|
|||||||
# call grub-install safely without dropping them
|
# call grub-install safely without dropping them
|
||||||
OPTIONS=""
|
OPTIONS=""
|
||||||
|
|
||||||
db_get grub2/force_efi_extra_removable
|
db_get grub2/force_efi_extra_removable || RET=false
|
||||||
if [ "$RET" = true ]; then
|
if [ "$RET" = true ]; then
|
||||||
OPTIONS="$OPTIONS --force-extra-removable"
|
OPTIONS="$OPTIONS --force-extra-removable"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
db_get grub2/update_nvram
|
db_get grub2/update_nvram || RET=true
|
||||||
if [ "$RET" = false ]; then
|
if [ "$RET" = false ]; then
|
||||||
OPTIONS="$OPTIONS --no-nvram"
|
OPTIONS="$OPTIONS --no-nvram"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user