diff options
| author | Steve McIntyre <steve@einval.com> | 2021-05-04 14:45:00 +0100 |
|---|---|---|
| committer | Steve McIntyre <steve@einval.com> | 2021-05-04 16:53:23 +0000 |
| commit | fca690565375b167d947e53d15ffdcf93fbee181 (patch) | |
| tree | 1b36ffefe309a28e70f1f4497f5a31daece40024 /debian/signing-template/@final_pkg_name@.postrm.in | |
| parent | 29f231fd049f023bcf57810544b757b325fac2ce (diff) | |
| download | efi-boot-shim-fca690565375b167d947e53d15ffdcf93fbee181.tar.gz efi-boot-shim-fca690565375b167d947e53d15ffdcf93fbee181.zip | |
Fix up the template maintainer scriptsdebian/15.4-4
if we're not running on an EFI system then exit cleanly
Diffstat (limited to 'debian/signing-template/@final_pkg_name@.postrm.in')
| -rwxr-xr-x[-rw-r--r--] | debian/signing-template/@final_pkg_name@.postrm.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/signing-template/@final_pkg_name@.postrm.in b/debian/signing-template/@final_pkg_name@.postrm.in index cd261b15..2da291d8 100644..100755 --- a/debian/signing-template/@final_pkg_name@.postrm.in +++ b/debian/signing-template/@final_pkg_name@.postrm.in @@ -1,6 +1,11 @@ #! /bin/sh set -e +# If we're not on an EFI system, do nothing +if [ ! -d /sys/firmware/efi ]; then + exit 0 +fi + case @arch@ in i386) SHIM_REMOVE="mmia32.efi fbia32.efi";; @@ -39,8 +44,7 @@ case $1 in # If we're being removed, remove the copies installed in the # ESP. grub-install doesn't clean those up for us. if [ "$bootloader_id" ] && \ - [ -d "/boot/efi/EFI/$bootloader_id" ] && \ - [ -d /sys/firmware/efi ]; then + [ -d "/boot/efi/EFI/$bootloader_id" ]; then cd /boot/efi/EFI/$bootloader_id rm -f $SHIM_REMOVE |
