From owner-freebsd-bugs Tue Sep 11 20:50:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B069737B40B for ; Tue, 11 Sep 2001 20:50:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8C3o0102744; Tue, 11 Sep 2001 20:50:00 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 04AAF37B401 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/30517: using sysinstall with install.cfg has no way to delete existing partitions Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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