Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2013 23:36:58 +0100
From:      =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To:        freebsd-sparc64@freebsd.org
Subject:   How to retrieve the "bootpath" variable in a running FreeBSD ?
Message-ID:  <CA%2Bq%2BTcrLq2tJd0ffLGgiswBkozs4T=pPwjby55B1FbD=pBE26A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I've almost finish my nanobsd-sparc64 script but I meet a problem for
the upgrade script.
The last step of the upgrade process is to modify the OPB for booting
on the new-system-partition "d" of my drive in place of the
old-system-partition "a".
I can use a simple command like this:
eeprom boot-device=3Ddisk:d
But this method is too stupid because it didn't works if my nanobsd is
installed on another disk than the disk corresponding to the nvram
alias "disk".
This is why I want to use the more precise variable "bootpath" that is
display during the FreeBSD bootstrap loader like on this capture:

FreeBSD/sparc64 bootstrap loader, Revision 1.0
(root@sparc.orange.bsdrp.net, Sat Jan 12 10:12:01 UTC 2013)
bootpath=3D"/pci@1f,0/ide@d/disk@1,0:a"

But, I've checked in "sysctl -a" and in "eeprom -a"=85 I didn't found it.
Do you know where I can found it from my running FreeBSD ?

Thanks,

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcrLq2tJd0ffLGgiswBkozs4T=pPwjby55B1FbD=pBE26A>