From owner-freebsd-stable@FreeBSD.ORG Sun Dec 12 17:34:58 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81D541065672 for ; Sun, 12 Dec 2010 17:34:58 +0000 (UTC) (envelope-from mvoorhis@cs.wpi.edu) Received: from MAIL1.WPI.EDU (MAIL1.WPI.EDU [130.215.36.91]) by mx1.freebsd.org (Postfix) with ESMTP id 3504C8FC08 for ; Sun, 12 Dec 2010 17:34:57 +0000 (UTC) Received: from SMTP.WPI.EDU (SMTP.WPI.EDU [130.215.36.186]) by MAIL1.WPI.EDU (8.14.5.Beta0/8.14.5.Beta0) with ESMTP id oBCH8k9g019578 for ; Sun, 12 Dec 2010 12:08:46 -0500 Received: from APPLIANCE4.WPI.EDU (appliance4.wpi.edu [130.215.36.61]) by SMTP.WPI.EDU (8.14.4/8.14.4) with ESMTP id oBCH8jD6002115 for ; Sun, 12 Dec 2010 12:08:46 -0500 (envelope-from mvoorhis@cs.wpi.edu) Received: from [192.168.2.2] (24-241-20-47.dhcp.oxfr.ma.charter.com [24.241.20.47]) (authenticated authen=mvoorhis) by APPLIANCE4.WPI.EDU (8.14.5.Beta0/8.14.5.Beta0) with ESMTP id oBCH8i1Q027324 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 12 Dec 2010 12:08:45 -0500 Message-ID: <4D050197.8010600@cs.wpi.edu> Date: Sun, 12 Dec 2010 12:08:39 -0500 From: Michael Voorhis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20101212151704.197dddee@core.draftnet> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 8.2-BETA1 sysinstall: No USB devices found X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 17:34:58 -0000 On 12/12/2010 11:28 AM, Brandon Gooch wrote: > How difficult would it be for the installer to automatically re-scan > for devices when USB is selected as install or Fix-it media? Ditto this. I do all my OS installs via a USB CD reader and it took me a little while to come up with the rescan-fix. I don't order rack servers with optical disk readers that I'll only be using once to install the OS, so all the stuff I build is installed from USB disc readers. My initial response was "how can we not know there's a CD reader when I just booted and read the installer from it." One of the 1st things sysinstall does is run a device scan deviceGetAll(), but that misses the USB device, apparently. The deviceRescan() calls the same function, but preceeds it with deviceReset(). All this stuff is in src/usr.sbin/sysinstall/devices.c. I'm not smart enough to make my own install disks right now; what would happen if the reset were inserted in front of the rescan (in main.c) at the beginning of sysinstall execution? That seems to be the only difference between the initial scan and the "option" scan.