Date: Mon, 01 Apr 2002 10:09:34 -0800 From: Michael Smith <msmith@freebsd.org> To: Dmitry Konyshev <daemon@agava.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: finding out boot device Message-ID: <200204011809.g31I9Yg01184@mass.dis.org> In-Reply-To: Your message of "Mon, 01 Apr 2002 20:34:42 %2B0400." <84434325847.20020401203442@agava.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Could anyone please tell me if there's any way to find out which > device the system booted from in a user application. The loader > sets loaddev and currdev vars, but I see no way to transfer them to > the user environment. kenv(8) allows you to read the kernel/loader environment. However, you can't reliably determine the boot device. -- To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. - Theodore Roosevelt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204011809.g31I9Yg01184>