From owner-freebsd-current@FreeBSD.ORG Thu Nov 18 00:10:38 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5730106564A for ; Thu, 18 Nov 2010 00:10:38 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE3F8FC18 for ; Thu, 18 Nov 2010 00:10:38 +0000 (UTC) Received: by wwd20 with SMTP id 20so2599949wwd.31 for ; Wed, 17 Nov 2010 16:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=XDVZeWLWnx6pDqqMYaqLz6xSutWtsOZAFMqx6j9ahwo=; b=jYdph1GjA7gEfla5Ig6RbAPimHShMAd4jsvcVcHWd3WA3JiaO/Sz06KpWpB+L+Rhme HmEtokpy2fuLZFONgOH3/MinCjffbzKChH6oDOQPEvHTfLYvUhKPm/i6GaKsI7llnV38 9h3qOJ2WWG2+Vj9w6qSjjotNs6pbLeC340pMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=BtyNlW1X+ZTZ0swoOPjR0BqePADMhKWElHod0y0Haww+I0aR2NOD+zBap3NpW9qG+6 zPXlnhTU1qRmD8sVE2cB7MyoJZyFg4aJNKyfmbdxGGW3WSdAKHhSUsMis4ZNJJlhsPXU Lw1RrI14h9c9z+PtPhADgAmCEV7KHMyO6WoYw= MIME-Version: 1.0 Received: by 10.216.175.18 with SMTP id y18mr9691986wel.30.1290039035967; Wed, 17 Nov 2010 16:10:35 -0800 (PST) Received: by 10.216.198.27 with HTTP; Wed, 17 Nov 2010 16:10:35 -0800 (PST) Date: Wed, 17 Nov 2010 16:10:35 -0800 Message-ID: From: Garrett Cooper To: Marcel Moolenaar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 18 Nov 2010 00:18:32 +0000 Cc: FreeBSD Current Subject: Panic with vfs.root.mountfrom=nfs on CURRENT (was Re: [patch] functional prototype of root mount enhancement) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2010 00:10:39 -0000 On Tue, Sep 28, 2010 at 11:24 AM, Marcel Moolenaar wrote: > > On Sep 28, 2010, at 10:27 AM, M. Warner Losh wrote: > >> Hey Marcel, >> >> haven't had a chance to look through this in detail yet. =A0One item >> that has always bugged me is why when we hit the prompt that has to be >> the end of discovery... =A0Why can't we have a method to listen to new >> geom providers being advertised and then 'short circuit' the ask >> prompt if /dev/da0s1a or /dev/ufs/rootfs or whatever it originally >> wanted appears. >> >> Maybe this isn't .ask, but some other verb in your language? > > Hmmm... I think we should give .ask an option so that it can be > made conditional upon a key press then. I don't think it's nice > to print all that stuff, present a prompt, wait for input and > then shortly after continue booting anyway because some device > showed up. > > Say we have ".ask on-key-press", which basically nullifies the > .ask directive (by implicitly failing to mount) unless a key was > pressed. At that time we actually print the help, show a prompt > and wait for input. This in combination with ".onfail retry" > allows us to cycle through the alternatives until 1) a key was > pressed and we'll drop at the interactive mount prompt or 2) a > device we've been waiting for appears and we can mount root. > > Would that address your case? > > Another feature we may need is the alternative: if you boot > with -C, we'll try cd9660:/dev/cd0 and cd9660:/dev/acd0. What > we really want to do is: > =A0 =A0 =A0 =A0.select /dev/cd0 /dev/acd0 > =A0 =A0 =A0 =A0cd9660:%selected% Hi Marcel, Do you have any examples that use nfs rootfs's out of the box that work with the new logic that don't involve creating an mfsroot? I keep on running into this error with vfs.root.mountfrom=3Dnfs (previously on CURRENT it would just try to mount nfs via nfs_mount in the NFS client without any complaints): Root mount waiting for: usbus2 uhid0: on usbus2 panic: mountroot: unable to (re-)mount root. cpuid =3D 10 KDB: enter: panic [ thread pid 1 tid 100002 ] Stopped at kdb_enter+0x3d: movq $0,0x6e60e0(%rip) db> continue Uptime: 13s Cannot dump. Device not defined or unavailable. Automatic reboot in 15 seconds - press a key on the console to abort I don't run into this error when I unset this variable sometimes (it boots up multiuser and all is happy, hunky dory when I manually query this variable from the pxeboot loader, but not when I don't... it's weird). It seems to ignore the directives in mount.conf: # cat mount.conf .onfail continue .ask and always panics for no good reason (and gets stuck so I have to powercycle the machine manually, but that's a different issue entirely). Thanks, -Garrett