From a5f3876f102d7e8dbb55bfd2bded17dec0d7ab26 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 2 Jun 2016 22:38:33 +0200 Subject: [PATCH] rescue image: Strip lvm(8). It's built separately outside of the crunchgen'd stuff, for reasons I'm yet not sure of. So of course it also needs to be stripped separately because if -g is added to the user's buildworld flags, it will go into the initrd with debug symbols (filling it to 95%, opposed to the (currently) 73% when not stripped). --- share/initrd/sbin.lvm/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/initrd/sbin.lvm/Makefile b/share/initrd/sbin.lvm/Makefile index aa6c5f2c0e..9e2dec01f2 100644 --- a/share/initrd/sbin.lvm/Makefile +++ b/share/initrd/sbin.lvm/Makefile @@ -86,4 +86,7 @@ LDFLAGS+= -rpath /lib/priv -L ${_SHLIBDIRPREFIX}/usr/lib/priv .PATH: ${LVM2_DISTDIR}/tools +afterinstall: + strip ${DESTDIR}${BINDIR}/lvm + .include -- 2.41.0