From owner-freebsd-arch Thu Mar 14 12: 5:45 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 3D12237B400; Thu, 14 Mar 2002 12:05:43 -0800 (PST) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g2EK5ft7145108; Thu, 14 Mar 2002 15:05:41 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200203100456.g2A4u2j01429@mass.dis.org> References: <200203100456.g2A4u2j01429@mass.dis.org> Date: Thu, 14 Mar 2002 15:05:40 -0500 To: Michael Smith , Luigi Rizzo From: Garance A Drosihn Subject: Re: For review: machdep.bootdev sysctl (for i386) Cc: arch@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 8:56 PM -0800 3/9/02, Michael Smith wrote: >Luigi wrote: > > Looking at a way to determine the boot device from > > userland, I have come to the conclusion that the most > > reasonable way is to export to userland whatever > > information the kernel has (and this is machine > > dependent, sorry!), and let some userland program > > (getbootdev(1)) convert it into a reasonable device > > name. > >What do you mean by "boot device"? > >The device from which the initial bootstrap was loaded? >The device from which the loader was loaded? The device >from which the kernel was loaded? In thinking some more about what I was hoping for, what I want is really the "rootdev" value. For instance, I want to be able to duplicate a bunch of partitions to a second set of partitions, and I want to have a different /etc/fstab picked during the bootup-process based on which partition I am booting off of. In my case, I would be doing simple booting of the partition, so bootdev and rootdev and any-other-initial-dev would all be the same value. But strictly-speaking, I imagine rootdev is really what I am looking for. Is that something which could be done? -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message