conf/172957: pc-sysinstall can not handle disk layouts that have a 0 size in anything but the last slice or partition
Mark Saad
msaad at www.about.akadns.net
Mon Oct 22 14:50:02 UTC 2012
>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 at 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:
More information about the freebsd-bugs
mailing list