Subject: install/28568: partition with 0 size causes root to shrink by default [128] value with 0 input
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <GeorgePS@XMission.com>
List: netbsd-bugs
Date: 12/07/2004 05:24:00
>Number:         28568
>Category:       install
>Synopsis:       partition with 0 size causes root to shrink by default [128] value with 0 input
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 07 05:24:00 +0000 2004
>Originator:     George Peter Staplin
>Release:        NetBSD 2.0_RC5
>Organization:
>Environment:
NetBSD  2.0_RC5 NetBSD 2.0_RC5 (GENERIC) #0: Sat Nov 13 06:15:03 EST 2004  tinderbox@beastie:/data1/tinderbox/release-x11/netbsd-2-0/obj/sys/arch/i
386/compile/GENERIC i386

>Description:
In the sysinst partition setup I had this layout:

600 MB ... /  
120 MB ... swap
0 MB ... /usr

I selected /usr and pressed <Enter> and the default size was [128].  I entered 0, and found that / shrunk by 128.  I repeated this pattern twice with /usr, with the same result of shrinking / by the default of [128].  Eventually it causes an underflow of / and a very large number of MB for / that doesn't make sense for the size of the disk.
>How-To-Repeat:
Enter a 0 value in an entry that has a default ([128]) partition size, and an existing size of 0.
>Fix: