Date: Tue, 11 Sep 2001 20:41:30 -0700 (PDT) From: Ryan Mooney <ryan@pcslink.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/30517: using sysinstall with install.cfg has no way to delete existing partitions Message-ID: <200109120341.f8C3fUJ01656@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 30517 >Category: misc >Synopsis: using sysinstall with install.cfg has no way to delete existing partitions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >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: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109120341.f8C3fUJ01656>
