L2 Cache

Behold the power of |!

User Tools

Site Tools


Sidebar

snipets:solaris:dilos-upgrade

Upgrading DilOS

Upgrading DilOS is a bit trickier than an IPS based distro. There are some steps that need to be done, I kept missing some. So I broke my system a few times. I wrote a little script that does it for me.

Just safe it and run ./quick_upgrade to upgrade to the latest version. There is only one pitfall, if no updates are installed it does create a new BE. If no updates where done, simple destroy the be that was create, otherwise reboot to boot into the new BE.

quick_upgrade

#!/bin/sh

BE=dilos_$(date +%Y%m%d%H%M)
BED="dilos $(date +%Y%m%d%H%M) [auto 32/64-bits]"

apt-get update
apt-get install apt dpkg
beadm create -d "${BED}" ${BE}
beadm mount ${BE} /a
apt-get -R /a update
apt-get -R /a dist-upgrade
bootadm update-archive -R /a
beadm activate ${BE}
beadm unmount ${BE}
snipets/solaris/dilos-upgrade.txt · Last modified: 2014/10/09 22:02 (external edit)