Solved Huge GENERIC /boot/kernel in 10.1-RELEASE

Hi.

Yesterday I updated my FreeBSD 10.0-RELEASE to 10.1-RELEASE and noticed that /boot/kernel is really big. Both, 10.0 and 10.1 runs GENERIC kernel. I updated system using freebsd-update.
Code:
uname -a
FreeBSD localhost.homenet.org 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
Code:
du -Lhrs /boot/kernel
454M    /boot/kernel
/boot/kernel.old is a backup of GENERIC kernel from FreeBSD 10.0.
Code:
du -Lhrs /boot/kernel.old
81M    /boot/kernel.old
Why there is so big difference between kernels size?

--edit--
Never mind, I checked that in 10.0 /boot/kernel has more than 400 MB, so /boot/kernel.old is not a copy of the the entire kernel directory, as I incorrectly thought.
 
With freebsd-update(8) you can choose if you want the backup of the kernel to include symbols or not. If you update from sources, the backup kernel directory will include symbols.

FreeBSD 10.1-RELEASE AMD64, build from source:
Code:
% du -sh kernel*
478M   kernel
478M   kernel.old
% du -sh -I "*symbols" kernel*
 90M   kernel
 90M   kernel.old

FreeBSD 10.1-RELEASE i386, upgraded using freebsd-update(8):
Code:
% du -sh kernel*
247M   kernel
 72M   kernel.old
% du -sh -I "*symbols" kernel*
 75M   kernel
 72M   kernel.old
 
Back
Top