From owner-freebsd-sparc64@FreeBSD.ORG Sat Jan 12 22:37:25 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7F5A6BCE for ; Sat, 12 Jan 2013 22:37:25 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx1.freebsd.org (Postfix) with ESMTP id 3FCDFB63 for ; Sat, 12 Jan 2013 22:37:25 +0000 (UTC) Received: by mail-vc0-f180.google.com with SMTP id p16so2471020vcq.25 for ; Sat, 12 Jan 2013 14:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=KkHdI+28pjGDr9iZv729WjeVVCQ6sCXgTvq4cjzC2gU=; b=fi9NZH2vlyQXwEHFgMRGnyMXqxbVTqWnq5JICc3tOonSrTJ4Gx2p3FLG3MkNB/wimc uuSa3Mn5btXlOQfE5cEPDw4kAqAXWZxoZjTFJNE5+3yRPUqlcojsrtVv6oW7mAv1nuxg OWh0xvD0mUpLfmFfbM4qjR5UhZWQtb+3V7HKJwZ6fkfAxyR6X+kLaXekGQzWitv+j/bH NS2CP4U1QZ2FHpb/OItdwEg++AQTdVnNYs7eUTSgvOKZJ6PAg7AylNQrIT7/eZ0Lo70y KwLhj1eye/Dwf5r9+EfwkVUTkz7KOq06yJDYHHVFedvj00MYZQw8Oqp4eyqd2EYSZmTw apSA== Received: by 10.220.241.80 with SMTP id ld16mr8365009vcb.5.1358030238599; Sat, 12 Jan 2013 14:37:18 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.164.100 with HTTP; Sat, 12 Jan 2013 14:36:58 -0800 (PST) From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Sat, 12 Jan 2013 23:36:58 +0100 X-Google-Sender-Auth: moIZ6xMvtuMuwY2kMVEeyp96UZ0 Message-ID: Subject: How to retrieve the "bootpath" variable in a running FreeBSD ? To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 22:37:25 -0000 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