From 45dce64638fc70dd447bb5bdfc31d3eb035aec1c Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Thu, 6 May 2021 00:40:56 +0100 Subject: Add defensive code around calls to db_get Don't fail if they return errors. --- debian/signing-template/@final_pkg_name@.postinst.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian/signing-template/@final_pkg_name@.postinst.in') 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 -- cgit v1.2.3