From owner-freebsd-hackers Thu Apr 18 16:11:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from arjun.niksun.com (gwnew.niksun.com [63.148.27.34]) by hub.freebsd.org (Postfix) with ESMTP id 6EC2137B405 for ; Thu, 18 Apr 2002 16:11:24 -0700 (PDT) Received: from niksun.com (daemon.niksun.com [10.0.10.10]) by arjun.niksun.com (8.9.3/8.9.3) with ESMTP id TAA78594; Thu, 18 Apr 2002 19:11:23 -0400 (EDT) (envelope-from jkim@niksun.com) Message-ID: <3CBF5299.3040504@niksun.com> Date: Thu, 18 Apr 2002 19:11:21 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.9) Gecko/20020312 X-Accept-Language: ko, en-us MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: jkim@niksun.com Subject: Non-interactive installation (with patch, of course) Content-Type: multipart/mixed; boundary="------------040300030205000102030201" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------040300030205000102030201 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Can we let sysinstall sanitize geometry while non-interactive installation? This patch can be applied on src/release of 4.5-STABLE or src/usr.sbin of 5.0-CURRENT. Sorry for the whining but recent acquisition of Compaq ProLiant DL380 G2 made me do it. :-( Thanks, JK --------------040300030205000102030201 Content-Type: text/plain; name="disks.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="disks.diff" --- sysinstall/disks.c Thu Apr 4 03:39:39 2002 +++ sysinstall/disks.c.new Thu Apr 18 18:42:29 2002 @@ -866,6 +866,21 @@ d->bios_hd = strtol(cp + 1, &cp, 0); d->bios_sect = strtol(cp + 1, 0, 0); } +#ifndef PC98 + else if (d->bios_cyl > 65536 || d->bios_hd > 256 || d->bios_sect >= 64) { + dialog_clear_norefresh(); + msgConfirm("WARNING: A geometry of %ld/%ld/%ld for %s is incorrect. Using\n" + "a more likely geometry. If this geometry is incorrect or you\n" + "are unsure as to whether or not it's correct, please stop here,\n" + "set ``geometry'' at diskPartitionEditor function, and restart.\n\n" + "Remember: you need to enter whatever your BIOS thinks the\n" + "geometry is! For IDE, it's what you were told in the BIOS\n" + "setup. For SCSI, it's the translation mode your controller is\n" + "using. Do NOT use a ``physical geometry''.", + d->bios_cyl, d->bios_hd, d->bios_sect, d->name); + Sanitize_Bios_Geom(d); + } +#endif cp = variable_get(VAR_PARTITION); if (cp) { --------------040300030205000102030201-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message