]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: [debian] do not fail secure copy on older kernels
authorAndy Whitcroft <apw@canonical.com>
Wed, 10 Oct 2012 16:58:24 +0000 (17:58 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
debian/rules.d/2-binary-arch.mk

index d41f4937a0279b0fdb91db8dbc61fbf1b1e4564d..e873c09099cb1853374d245a8d3578aeab11071c 100644 (file)
@@ -78,9 +78,10 @@ ifeq ($(uefi_signed),true)
        # Check to see if this supports handoff, if not do not sign it.
        # Check the identification area magic and version >= 0x020b
        handoff=`dd if="$(pkgdir)/boot/$(install_file)-$(abi_release)-$*" bs=1 skip=514 count=6 2>/dev/null | od -s | awk '($$1 == 0 && $$2 == 25672 && $$3 == 21362 && $$4 >= 523) { print "GOOD" }'`; \
-       [ "$$handoff" = "GOOD" ] && \
+       if [ "$$handoff" = "GOOD" ]; then \
                cp -p $(pkgdir)/boot/$(install_file)-$(abi_release)-$* \
-                       $(signed)/$(release)-$(revision)/$(install_file)-$(abi_release)-$*.efi
+                       $(signed)/$(release)-$(revision)/$(install_file)-$(abi_release)-$*.efi; \
+       fi
 endif
 endif