Date: Thu, 18 Apr 2002 19:11:21 -0400 From: Jung-uk Kim <jkim@niksun.com> To: freebsd-hackers@freebsd.org Cc: jkim@niksun.com Subject: Non-interactive installation (with patch, of course) Message-ID: <3CBF5299.3040504@niksun.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CBF5299.3040504>