[Bug 264433] installkernel produces /boot/kernel directory over 500MB in size

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Jun 2022 11:56:25 UTC

            Bug ID: 264433
           Summary: installkernel produces /boot/kernel directory over
                    500MB in size
           Product: Base System
           Version: 13.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: eugen@freebsd.org
                CC: dim@FreeBSD.org


I used gitup to obtain stable/13 sources of 2 June 2022 and upgraded my
(UFS-only) 12.2-STABLE/amd64 system to 13.1-STABLE/amd64;
buildworld/buildkernel/installkernel/installworld/mergemaster went smooth and
system successfully rebooted to 13.1.

Then I discovered that my root UFS is almost full and /boot/kernel contains
over 500MB due to each kernel module containing debug_info, for example:

# ls -lh /boot/kernel/zfs.ko
-r-xr-xr-x  1 root  wheel    37M Jun  3 17:32 /boot/kernel/zfs.ko

# file /boot/kernel/zfs.ko
/boot/kernel/zfs.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD),
BuildID[sha1]=951f7d909f4df4dad8ad8c9e09cd17e0d8f08aae, with debug_info, not

You are receiving this mail because:
You are the assignee for the bug.