From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 22 14:50:02 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2F9DDD1 for ; Mon, 22 Oct 2012 14:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id C018C8FC0C for ; Mon, 22 Oct 2012 14:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9MEo10U065720 for ; Mon, 22 Oct 2012 14:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9MEo18K065719; Mon, 22 Oct 2012 14:50:01 GMT (envelope-from gnats) Resent-Date: Mon, 22 Oct 2012 14:50:01 GMT Resent-Message-Id: <201210221450.q9MEo18K065719@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Saad Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2106ABC for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/172957: pc-sysinstall can not handle disk layouts that have a 0 size in anything but the last slice or partition X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mark Saad List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2012 14:50:02 -0000 >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: