Для обновления Solaris 10-ой версии нужно использовать luupgrade.
Тестовый стенд: Solaris 10 (Generic_147441-01)
1) Подготовка.
Я использовал скачанный образ Solaris 10u11 в качестве источника для обновлений. Монтируем указанный образ в /mnt:
# mount -F hsfs /dev/dsk/c0t0d0s2 /mnt
# uname -a
SunOS sol10new 5.10 Generic_147441-01 i86pc i386 i86pc
2) Создание нового BootEnvironment:
# lucreate -n sol10u11
3) Обновление.
Собственно сам процесс обновления (в директорию /mnt смонтирован образ диска):
# luupgrade -u -s /mnt -n sol10u11
System has findroot enabled GRUB
No entry for BE in GRUB menu
Copying failsafe kernel from media.
64995 blocks
miniroot filesystem is
Mounting miniroot at
INFORMATION: Auto Registration already done for this BE .
Validating the contents of the media .
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains version .
Constructing upgrade profile to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE .
Checking for GRUB menu on ABE .
Saving GRUB menu on ABE .
Checking for x86 boot partition on ABE.
Determining packages to install or upgrade for BE .
Performing the operating system upgrade of the BE .
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
Upgrading Solaris: 1% completed
...
Installing failsafe
Failsafe install is complete.
Посмотрим наши BE:
# lustatus Boot Environment Is Active Active Can Copy Name Complete Now On Reboot Delete Status -------------------------- -------- ------ --------- ------ ---------- s10 yes yes yes yes - sol10u11 yes no no no
Активируем наш новый BE:
# luactivate sol10u11
System has findroot enabled GRUB
Generating boot-sign, partition and slice information for PBE
Saving existing file in top level dataset for BE as //etc/bootsign.prev.
A Live Upgrade Sync operation will be performed on startup of boot environment .
...
4) Перезагрузка.
Обязательно перегрузиться либо через init 6 либо через shutdown. Иначе не произойдёт обновление меню загрузчика и загрузиться старый BE.
После перезагрузки смотрим uname -a
# uname -a
SunOS sol10new 5.10 Generic_147148-26 i86pc i386 i86pc