From 01ba8e8f02ebbfba4fe144a2f60d4bad56fa4634 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 25 Jul 2017 12:49:57 -0400 Subject: [PATCH] livepatch: Copy them to /usr/lib/debug/livepatch Similar to how it is done in Xen 4.9 Signed-off-by: Konrad Rzeszutek Wilk --- root_image/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/root_image/Makefile b/root_image/Makefile index afb377e..6f12349 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -945,14 +945,15 @@ xend-install: yajl-depend xen-4.2-depend xen-python-bytecode fi # prune usr/include after copy rm -rf userspace/usr/include + if [ ! -d userspace/usr/lib/debug/livepatch ]; then mkdir -p userspace/usr/lib/debug/livepatch; fi if [ -d userspace/usr/lib/debug ]; then \ rm -rf userspace/usr/lib/debug/xen-syms; \ fi if [ $(XEN_VERSION) -gt 6 ]; then \ if [ $(XEN_VERSION) -gt 8 ]; then \ - cp -rdf $(XEN_SRC)/xen/test/livepatch/*.livepatch userspace/usr/lib/debug/; \ + cp -rdf $(XEN_SRC)/xen/test/livepatch/*.livepatch userspace/usr/lib/debug/livepatch/; \ else \ - cp -rdf $(XEN_SRC)/xen/arch/x86/test/*.livepatch userspace/usr/lib/debug/; \ + cp -rdf $(XEN_SRC)/xen/arch/x86/test/*.livepatch userspace/usr/lib/debug/livepatch; \ fi; \ fi ifeq ($(RPM_ARCH), x86_64) -- 2.39.5