Search This Blog

08 September 2008

Upgrading to svn_96

I was following these instructions [General instructions for updating to the latest OpenSolaris development build] and had a couple issues (which I just ignored)...


$ BUILD=`uname -v | sed s/snv_//`
$ pfexec pkg refresh
$ pfexec pkg install SUNWipkg@0.5.11-0.${BUILD}
$ pfexec pkg install entire@0.5.11-0.${BUILD}
$ echo ${BUILD}
$ pfexec pkg image-update
$ beadm list

malachi@serveris:~$ pfexec beadm create opensolaris-2
beadm: Unable to create opensolaris-2

$ mkdir /tmp/mnt$$
$ pfexec beadm mount opensolaris-2 /tmp/mnt$$
$ pfexec pkg -R /tmp/mnt$$ image-update

malachi@serveris:~$ pfexec /tmp/mnt$$/boot/solaris/bin/update_grub -R /tmp/mnt$$
Creating GRUB menu in /tmp/mnt696
bootadm: biosdev command failed for disk: /dev/dsk/c5t0d0s0.
bootadm: is_bootdisk(): cannot determine BIOS disk ID 'hd?' for disk: /dev/dsk/c5t0d0s0
bootadm: biosdev command failed for disk: /dev/dsk/c5t1d0s0.
bootadm: is_bootdisk(): cannot determine BIOS disk ID 'hd?' for disk: /dev/dsk/c5t1d0s0
bootadm: get_grubroot(): cannot get (hd?,?,?) for menu. menu not on bootdisk: /dev/rdsk/c5t0d0s0
Installing grub on /dev/rdsk/c5t0d0s0
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 266 sectors starting at 50 (abs 16115)
Creating GRUB menu in /tmp/mnt696
bootadm: biosdev command failed for disk: /dev/dsk/c5t0d0s0.
bootadm: is_bootdisk(): cannot determine BIOS disk ID 'hd?' for disk: /dev/dsk/c5t0d0s0
bootadm: biosdev command failed for disk: /dev/dsk/c5t1d0s0.
bootadm: is_bootdisk(): cannot determine BIOS disk ID 'hd?' for disk: /dev/dsk/c5t1d0s0
bootadm: get_grubroot(): cannot get (hd?,?,?) for menu. menu not on bootdisk: /dev/rdsk/c5t1d0s0
Installing grub on /dev/rdsk/c5t1d0s0
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 266 sectors starting at 50 (abs 16115)

$ pfexec beadm unmount opensolaris-2
$ pfexec beadm activate opensolaris-2

at this stage, I manually updated my /rpool/boot/grub/menu.lst to show the correct menu options...

$ pfexec reboot

2 comments:

  1. This first 4 steps have now been replaced with:

    $ BUILD=`uname -v | sed -e "s/snv_//" -e "s/[a-z]//"`
    $ pfexec pkg refresh
    $ pfexec pkg install entire@0.5.11-0.${BUILD}
    $ pfexec pkg install SUNWipkg@0.5.11-0.${BUILD}
    $ pfexec pkg install SUNWinstall-libs

    ReplyDelete
  2. Further upgrade notes can be found here.

    ReplyDelete