From owner-freebsd-current@FreeBSD.ORG Tue Jul 15 17:01:10 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F22D237B42C for ; Tue, 15 Jul 2003 17:01:09 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9408043FCB for ; Tue, 15 Jul 2003 17:01:08 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h6G00uhR004062 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 16 Jul 2003 02:01:01 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h6G00rAx016068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Jul 2003 02:00:54 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h6G00rgt010323; Wed, 16 Jul 2003 02:00:53 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h6G00qLE010322; Wed, 16 Jul 2003 02:00:52 +0200 (CEST) Date: Wed, 16 Jul 2003 02:00:52 +0200 From: Bernd Walter To: Harald Schmalzbauer Message-ID: <20030716000052.GJ72706@cicely12.cicely.de> References: <20030715214519.GG72706@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: freebsd-current@freebsd.org cc: ticso@cicely.de cc: Tim Kientzle Subject: Re: FFS_ROOT is gone? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 00:01:11 -0000 On Wed, Jul 16, 2003 at 01:47:59AM +0200, Harald Schmalzbauer wrote: > Bernd Walter wrote: > > On Tue, Jul 15, 2003 at 12:22:31PM -0700, Tim Kientzle wrote: > > > Harald Schmalzbauer wrote: > > > >The problem is solved. It was stupid, but I thought why should > > I have to > > > >set > > > >/ in /etc/fstab when the filesystem isn't mounted yet, so the > > file can't be > > > >read. > > > >But it seems the kernel reads this file "loader-like" *before* the > > > >filesystem is mounted. > > > > > > I believe that the loader actually reads this file (it > > > has to be able to locate and read files from UFS anyway > > > in order to load the kernel) and passes the root f/s > > > information to the kernel when it boots. This should > > > probably be documented in fstab(5) > > > > You can pass a filesystem at the loader prompt: > > vfs.root.mountfrom="" > > > > > >Considering the above to be correct I can't understand the > > ability to enter > > > >e. g. ufs:/dev/ad0a at "mountroot>" when it doesn't work. > > > > > > I've also been stung by the fact that the > > > "mountroot>" prompt is broken. > > > I looked briefly at the code, but the > > > bug is not particularly obvious. > > > > At least it wasn't broken a while ago. > > What happens exactly after entering the correct device? > > The machine rebooted. No matter if I did "?" or any "ufs:xxYz". It's > behaviour was like "empty line". That's the normal behavour if the line can't be parsed. IIRC you can't correct typos on that line. Even if a line corrected with backspace looks good - it is not. > That was mine dunno about Tim's > > Regarding loader reades /etc/fstab: Of course loader and even boot can read > from ufs but I verified that current device was disk0s1 (where my 165-ID > was) and also something like root-mount was set to disk0s1. > > Next thing is that boot0 could'nt boot my kernel (5.1-release). > Some time ago I built a little accesspoint with 4.6 and there was no problem > booting the kernel with only boot0, no loader. > > Has this feature been intentionally removed? The loader sets variables that are required for the kernel to run such as reading device.hints. You can still compile the variables staticaly into the kernel and directly use boot2 (boot0 is the bootmanager). -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de