git: initrd/mkinitrd.sh: Force strip the binaries to fix size exceeding
Aaron LI
aly at crater.dragonflybsd.org
Mon Aug 3 17:10:27 PDT 2026
commit f48dc6ab26f34df05d39a5e2f80b997d0a835337
Author: Aaron LI <aly at aaronly.me>
Date: Tue Aug 4 07:16:18 2026 +0800
initrd/mkinitrd.sh: Force strip the binaries to fix size exceeding
A user may set DEBUG_FLAGS in /etc/make.conf to retain debug symbols
during the installation phase, so the copied /rescue tools containing
the debug symbols would exceed the allowed maximum initrd image (current
15MB) and then break the installworld phase.
This issue was introduced by my commit 9d10863cc2df1e9077eb6405dd8572c243ba94d7
that removed the hardcoded 'strip' invocation from crunchgen(1)-
generated makefiles.
Now we force strip the binaries after copying them to the initrd build
directory.
Reported-by: swildner
Discussed-with: swildner
Summary of changes:
initrd/mkinitrd.sh | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f48dc6ab26f34df05d39a5e2f80b997d0a835337
--
DragonFly BSD source repository
More information about the Commits
mailing list