From root@dhcp-52-40.ops.about.com  Mon Oct 22 14:46:24 2012
Return-Path: <root@dhcp-52-40.ops.about.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B2106ABC
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Oct 2012 14:46:24 +0000 (UTC)
	(envelope-from root@dhcp-52-40.ops.about.com)
Received: from smtpapps.about.com (smtpapps.about.com [207.241.149.197])
	by mx1.freebsd.org (Postfix) with SMTP id 404248FC17
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Oct 2012 14:46:23 +0000 (UTC)
Received: (qmail 22941 invoked from network); 22 Oct 2012 14:39:42 -0000
Received: from unknown (HELO dhcp-52-40.ops.about.com) (209.66.78.50)
  by smtpapps.about.com with SMTP; 22 Oct 2012 14:39:42 -0000
Received: from dhcp-52-40.ops.about.com (localhost [127.0.0.1])
	by dhcp-52-40.ops.about.com (8.14.5/8.14.5) with ESMTP id q9MEchJU027559
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Oct 2012 14:38:44 GMT
	(envelope-from root@dhcp-52-40.ops.about.com)
Received: (from root@localhost)
	by dhcp-52-40.ops.about.com (8.14.5/8.14.5/Submit) id q9MEch5K027558;
	Mon, 22 Oct 2012 14:38:43 GMT
	(envelope-from root)
Message-Id: <201210221438.q9MEch5K027558@dhcp-52-40.ops.about.com>
Date: Mon, 22 Oct 2012 14:38:43 GMT
From: Mark Saad <msaad@www.about.akadns.net>
Reply-To: Mark Saad <msaad@about.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pc-sysinstall can not handle disk layouts that have a 0 size in anything but the last slice or partition
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         172957
>Category:       conf
>Synopsis:       pc-sysinstall can not handle disk layouts that have a 0 size in anything but the last slice or partition
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 22 14:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Mark Saad
>Release:        FreeBSD 9.1-RC1 amd64
>Organization:
About.com
>Environment:
System: FreeBSD dhcp-52-40 9.1-RC1 FreeBSD 9.1-RC1 #0: Thu Aug 9 09:41:50 PDT 2012 root@build9x64.pcbsd.org:/usr/obj/builds/amd64/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64


>Description:
     In all prior versions of sysinstall a admin could create a 0 sized slice to indicate , use all available space left over after accounting for the other slice sizes. 
It was the following disk layout was inuse by us for a number of years

ad4s1-1=ufs 0 / 1
ad4s1-2=ufs 20971520 /var 1
ad4s1-3=swap 8388608 none

After the conversion to pc-sysinstall in 9.0-RELEASE , this functionality was broken and the following layout would not work as; pc-sysinstall allocated all of the disks space and assigned it to slice 1 .  It would not take the allocated sized of the other slices into account. 


>How-To-Repeat:
    First off  I am using pc-sysinstall to setup a PXE boot enviroment based network install for FreeBSD 9.1 .

I setup the following disk layout in a pc-sysinstall.conf which I passed to pc-sysinstall for an automated install .

disk0-part=UFS+SUJ 0 /
disk0-part=SWAP 2048 none
disk0-part=UFS+SUJ 10240 /var
commitDiskLabel

During the install process pc-sysinstall would fail indicating there was no free space to create swap.

>Fix:

The bug was reported upstream to jpaetzel and kmoore who fixed it and commited r240315 to 9-STABLE. 
See http://svn.freebsd.org/changeset/base/240315 

This would be a big help to have this in the final version of 9.1-RELEASE .


>Release-Note:
>Audit-Trail:
>Unformatted:
