diff options
author | Steve McIntyre <steve@einval.com> | 2021-05-06 00:40:56 +0100 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2021-05-06 00:40:56 +0100 |
commit | 45dce64638fc70dd447bb5bdfc31d3eb035aec1c (patch) | |
tree | ad5dac0a6c03a74e7f52d4daff7fd4e215429699 /debian/signing-template | |
parent | fca690565375b167d947e53d15ffdcf93fbee181 (diff) | |
download | efi-boot-shim-debian/15.4-5.tar.gz efi-boot-shim-debian/15.4-5.zip |
Add defensive code around calls to db_getdebian/15.4-5
Don't fail if they return errors.
Diffstat (limited to 'debian/signing-template')
-rwxr-xr-x | debian/signing-template/@final_pkg_name@.postinst.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/signing-template/@final_pkg_name@.postinst.in b/debian/signing-template/@final_pkg_name@.postinst.in index 17f54c87..3e8e53f7 100755 --- a/debian/signing-template/@final_pkg_name@.postinst.in +++ b/debian/signing-template/@final_pkg_name@.postinst.in @@ -64,12 +64,12 @@ case $1 in # call grub-install safely without dropping them OPTIONS="" - db_get grub2/force_efi_extra_removable + db_get grub2/force_efi_extra_removable || RET=false if [ "$RET" = true ]; then OPTIONS="$OPTIONS --force-extra-removable" fi - db_get grub2/update_nvram + db_get grub2/update_nvram || RET=true if [ "$RET" = false ]; then OPTIONS="$OPTIONS --no-nvram" fi |