Consider that no operations have happened yet from /install/Solaris_10/Tools.
The booting miniroot should be unpacked to a subdirectory, not a ZFS dataset.
IMPORTANT
It can be considered best practice to patch the boot miniroot as soon as possible.
It's known to be necessary when performing a flash install of an updated ZFS-root image.
/install/Solaris_10/Tools should already exist as per the previous assumptions.
For correct patchadd behavior patch 119255-86 / 119254-86 must be installed.
The whole operation is as follows:
# mkdir /patch/miniroot
# /boot/solaris/bin/root_archive
unpackmedia /install /patch/miniroot
# cp -p /patch/miniroot/sbin/rc2{,.0}
# cp -p /patch/miniroot/sbin/sulogin{,.0}
# smpatch download -d /tmp -f -i 147441
147441-23 has been validated.
# patchadd -C /patch/miniroot /tmp/147441-23
Patch 147441-23 has been successfully installed.
See /patch/miniroot/var/sadm/patch/147441-23/log for details
Executing postpatch script...
Patch packages installed:
SUNWbtool
SUNWcakr
SUNWckr
SUNWcsl
SUNWcslr
SUNWcsr
SUNWcsu
SUNWesu
SUNWgss
SUNWmdb
SUNWmdbr
SUNWmptsas
SUNWnfsckr
SUNWnfscr
SUNWnfscu
SUNWnfsskr
SUNWnfssu
SUNWos86r
SUNWxvmpv
SUNWzfskr
SUNWzfsr
SUNWzfsu
SUNWzoneu
# export SVCCFG_REPOSITORY=/patch/miniroot/etc/svc/repository.dbSee /patch/miniroot/var/sadm/patch/147441-23/log for details
Executing postpatch script...
Patch packages installed:
SUNWbtool
SUNWcakr
SUNWckr
SUNWcsl
SUNWcslr
SUNWcsr
SUNWcsu
SUNWesu
SUNWgss
SUNWmdb
SUNWmdbr
SUNWmptsas
SUNWnfsckr
SUNWnfscr
SUNWnfscu
SUNWnfsskr
SUNWnfssu
SUNWos86r
SUNWxvmpv
SUNWzfskr
SUNWzfsr
SUNWzfsu
SUNWzoneu
# svccfg -s system/manifest-import setprop start/exec = :true
# svccfg -s system/filesystem/usr setprop start/exec = :true
# svccfg -s system/identity:node setprop start/exec = :true
# svccfg -s system/device/local setprop start/exec = :true
# svccfg -s network/loopback:default setprop start/exec = :true
# svccfg -s network/physical:default setprop start/exec = :true
# svccfg -s milestone/multi-user setprop start/exec = :true
# mv /patch/miniroot/sbin/rc2{.0,}
# mv /patch/miniroot/sbin/sulogin{.0,}
# /boot/solaris/bin/root_archive
packmedia /install /patch/miniroot
Now, other boot and/or JumpStart servers can be more easily updated.
Assuming that the updated server js-01 can (rw) mount js-02:/install:
js-01 # cd /install
js-01 # find boot Solaris_10/Tools/Boot |
cpio -pdum /net/js-02/install
js-01 # find boot Solaris_10/Tools/Boot |
cpio -pdum /net/js-02/install