Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2004 11:15:16 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: actual boot device
Message-ID:  <20040817161516.GB53307@dan.emsphone.com>
In-Reply-To: <20040817185240.A5554@oasis.uptsoft.com>
References:  <20040817185240.A5554@oasis.uptsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 17), Sergey Lyubka said:
> How would one know the actual boot device after kernel successfully
> booted ?

The kern.bootfile sysctl points to the kernel file that was loaded,
according to the loader.  If you booted off of cdrom or floppy, you can
run "kenv loaddev" to find out which device was actually used to read
the file.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040817161516.GB53307>