From nobody@FreeBSD.org  Tue Sep 11 20:41:31 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 04AAF37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2001 20:41:31 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8C3fUJ01656;
	Tue, 11 Sep 2001 20:41:30 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200109120341.f8C3fUJ01656@freefall.freebsd.org>
Date: Tue, 11 Sep 2001 20:41:30 -0700 (PDT)
From: Ryan Mooney <ryan@pcslink.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: using sysinstall with install.cfg has no way to delete existing partitions
X-Send-Pr-Version: www-1.0

>Number:         30517
>Category:       bin
>Synopsis:       sysinstall(8): using sysinstall with install.cfg has no way to delete existing partitions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-sysinstall
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 11 20:50:00 PDT 2001
>Closed-Date:    
>Last-Modified:  Sat Jun 29 05:53:02 UTC 2013
>Originator:     Ryan Mooney
>Release:        4.3 and 4.4
>Organization:
>Environment:
FreeBSD blah.foo.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Aug 16 14:34:11 HST 2001     root@blah.foo.com:/usr/src/sys/compile/blah  i386

>Description:
sysinstall in Noninteractive mode only deletes existing partitions
if "partition" is set to "all" or "exclusive".  Sysinstall currently 
has no way to delete existing partitions from the drive. 
We are working on reimaging a number of systems through automated 
installs, and we need to have multiple slices due to the 8 partitions 
per slice limit (yeah I'd prefer to fix that to, but...).  Anyway this 
requires us to specify the initial partition(s) size, and then use 
"free" for the last one.

This small patch allows you to have an install.cfg file that looks like
this:

---snip---
disk=da0 
# ~5 Gigs  
deletedisk=YES
partition=10340000
# partition=all
bootManager=standard   
diskPartitionEditor

disk=da0
partition=free
bootManager=standard 
diskPartitionEditor
---snip---

So that all existing partitions get deleted on the first call to
diskPartitionEditor.
>How-To-Repeat:

>Fix:
Apply the following (small) context diff.  I realize that investing
more energy in sysinstall is probably wasted, but this is a very
minimal patch, and doesn't affect any existing functionality, so its
probably worth it.

 http://www.pcslink.com/~ryan/sysinstall.patch

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->qa 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Jul 18 15:54:19 PDT 2003 
Responsible-Changed-Why:  
Assign to qa team 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30517 
Responsible-Changed-From-To: freebsd-bugs->randi 
Responsible-Changed-By: randi 
Responsible-Changed-When: Sat Jun 6 19:46:47 UTC 2009 
Responsible-Changed-Why:  
Taking this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30517 
Responsible-Changed-From-To: randi->freebsd-sysinstall 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 29 05:52:04 UTC 2013 
Responsible-Changed-Why:  
back to mailing list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30517 
>Unformatted:
