Backing out of a Patch - Failed Boot

1) Boot system from cdrom.

    {1} ok boot cdrom -s

2) Mount all your system partitions (/,/var)

    # mount /dev/dsk/c1t0d0s0 /mnt          (/)
    # mount /dev/dsk/c0t0d0s7 /mnt/var      (/var)

NOTE: If you don’t have a separate
partition for /var you can skip that step. CAUTION:
If your system partitions are mirrored, you’ll have to first disconnect
mirror devices and after removing the patch sync mirrored devices again

3) To make patchrm work correctly in chrooted environment you’ll need to mount /proc and copy /etc/mnttab under /mnt.

    # mount -F proc proc /mnt/proc
    # cp /etc/mnttab /mnt/etc/mnttab

4) Use chroot to run patchrm and remove unwanted patch.

    # chroot /mnt /usr/sbin/patchrm 111097-13

    Checking installed patches...
    Backing out patch 111097-13...
    Patch 111097-13 has been backed out.

5) Clean up; Unmount filesystems and clean /mnt/etc/mnttab before reboot

    # cd /
    # rm /mnt/etc/mnttab
    # touch /mnt/etc/mnttab

    # umount /mnt/proc
    # umount /mnt/var

NOTE: If you don’t have mounted a partition for /var at step 2, you can skip that step.

    # umount /mnt
    # halt

    {1} ok boot

Leave a comment

Please be polite and on topic. Your e-mail will never be published.