Bug 30517

Summary: sysinstall(8): using sysinstall with install.cfg has no way to delete existing partitions
Product: Base System Reporter: ryan <ryan>
Component: binAssignee: freebsd-sysinstall (Nobody) <sysinstall>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description ryan 2001-09-12 04:50:00 UTC
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.

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
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-18 23:54:19 UTC
Responsible Changed
From-To: freebsd-bugs->qa

Assign to qa team
Comment 2 randi freebsd_committer freebsd_triage 2009-06-06 20:46:47 UTC
Responsible Changed
From-To: freebsd-bugs->randi

Taking this.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-06-29 06:52:04 UTC
Responsible Changed
From-To: randi->freebsd-sysinstall

back to mailing list.
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:07:56 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.
Comment 5 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:12:18 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.