Bug 160298 - sysinstall(8) does not allocate enough space in / for kernel rebuild
Summary: sysinstall(8) does not allocate enough space in / for kernel rebuild
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 22:00 UTC by freebsd-prs
Modified: 2015-11-10 09:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd-prs 2011-08-29 22:00:21 UTC
Recently installed FreeBSD on a new system. It allocated 384M (the
default, apparently) for the / partition. I then rebuilt the kernel.
During installation of a new kernel (using "make installkernel" from
/usr/src) FreeBSD backs up the old one and then installs the new one.
FreeBSD has apparently grown, because installation of the new kernel
(including symbols and kernel modules) overflowed the partition.
There's no way to adjust partition sizes easily in FreeBSD, so it's
not possible to rebuild the kernel unless one foregoes generating
symbols (which can make debugging difficult).

Fix: 

Change sysinstall to allocate enough room in / to allow rebuilding of
the kernel with backup of the original (GENERIC) kernel. Before each
release, verify that the default size of / does not need to be increased
to allow this.
How-To-Repeat: Install FreeBSD 8.1. Make a custom kernel. Install it.
Comment 1 Enji Cooper freebsd_committer 2015-11-10 09:07:09 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.