Updating OpenSolaris
August 15, 2008
Hello all,
in my last post I have wrote about Firefox 3 on OpenSolaris. Björn corrected me about it. Firefox3 is already in snv_95 image.
Currently, OpenSolaris 2008.05 livecd has been with environment snv86. So, let’s learn how to update your OpenSolaris image.
- Update package list
pkg refresh
- Upgrade your environment: it will create a new image to preserve and secure your current image
pkg image-update
- After some cups of coffee (a big and boring download :/), you will see this message:
A clone of opensolaris exists and has been updated and activated. On next boot the Boot Environment opensolaris-1 will be mounted on '/'. Reboot when ready to switch to this updated BE.
- To see your environments, just do it:
beadm list
- Now, let’s notice the grub about the changes:
pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt
pfexec /mnt/boot/solaris/bin/update_grub -R /mnt/
- Reboot and choice “Solaris 2008.11 snv_95 X86“








September 10, 2008 at 1:31 pm
Thanks for the how-to
It made me a bit more familiar with pkg.
What I wonder though is, why is it needed to update grub manually? Doesn’t the image-update process and beadm handle this? Aside from not necessarily wanting an boot option named “opensolaris-1″, why is this necessary?
Thanks!
September 11, 2008 at 12:29 pm
Update grub manually is necessary because it’s a workaround while the pkg image-update is not corrected.
Yes, pkg image-update has a bug… =(
See it: http://www.opensolaris.org/jive/thread.jspa?threadID=62982&tstart=0
All images always will be in the form: opensolaris-n, e.g.:
opensolaris-1
opensolaris-2
etc.