From 008f246e971213571f8f41a3e0e9ad4b59257880 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Wed, 4 Apr 2012 11:09:14 +0100 Subject: PV-GRUB: Check for errors when applying patches to GRUB We want to ensure that patches apply cleanly without rejects. Bail if patch returns a non-zero exit code. Signed-off-by: Matt Wilson Committed-by: Ian Jackson Acked-by: Ian Campbell Acked-by: Ian Jackson --- stubdom/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stubdom') diff --git a/stubdom/Makefile b/stubdom/Makefile index b63041e729..2da70e3127 100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -331,7 +331,7 @@ grub-upstream: grub-$(GRUB_VERSION).tar.gz tar xzf $< mv grub-$(GRUB_VERSION) $@ for i in grub.patches/* ; do \ - patch -d $@ -p1 < $$i ; \ + patch -d $@ -p1 < $$i || exit 1; \ done .PHONY: grub -- cgit v1.2.3