Plan 629
Test-run 2748
TestCase 50569
For S10Update, S9Update, S8update builds:
===================================
1. Add patch
run 'patchadd $PATCH_ID' command to add new patches, as root,
2. reboot. Check /var/sadm/patch folder. There should be a folder named as the patch ID.
3. After testing the patches should be remove successfully, run 'patchrm $PATCH_ID' command as root. reboot. The patch folder under /var/sadm/patch should be removed.
Notes:1.How to confirm the IPS is the latest build?
1)Take snv_142 for example:After rebooting, "mcs -p /usr/lib/libX11.so" should show "nv_142" in theversion line for the library itself:@(#)libX11 1.3.2 (72bac57e9c4b nv_142)
2)Or you can confirm it by "pkg info X-incorporation",if you install build 144 then you can see a line such as "Branch 0.144" .
=============
--
bash-3.2$ su root
Password:
# patchadd 148912-01
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Cannot locate 148912-01 to install.
# reboot
============
$ bash
bash-3.2$ cd /var/sadm/patch
bash-3.2$ pwd
/var/sadm/patch
bash-3.2$ ls -al
total 10
drwxr-xr-x 5 root root 512 Mar 19 15:49 .
drwxr-xr-x 14 root sys 512 Mar 19 15:49 ..
-rw-r--r-- 1 root root 0 Mar 2 14:04 .mu_applied
drwxr-xr-x 2 root root 512 Mar 19 15:49 119279-45
drwxr-xr-x 2 root root 512 Mar 19 15:49 146663-01
drwxr-xr-x 2 root root 512 Mar 19 15:33 148913-01
bash-3.2$ patchrm 148913-01
bash: patchrm: command not found
bash-3.2$ su
Password:
# patchrm 148913-01
Validating patches...
Loading patches installed on the system...
Done!
Checking patches that you specified for removal.
Done!
Approved patches will be removed in this order:
148913-01
Checking installed patches...
Executing prebackout script...
Backing out patch 148913-01...
Executing postbackout script...
Patch 148913-01 has been backed out.
# reboot
==================
$ bash
bash-3.2$ cd /var/sadm/patch
bash-3.2$ pwd
/var/sadm/patch
bash-3.2$ ls -al
total 8
drwxr-xr-x 4 root root 512 Mar 20 16:15 .
drwxr-xr-x 14 root sys 512 Mar 19 15:49 ..
-rw-r--r-- 1 root root 0 Mar 2 14:04 .mu_applied
drwxr-xr-x 2 root root 512 Mar 19 15:49 119279-45
drwxr-xr-x 2 root root 512 Mar 19 15:49 146663-01
bash-3.2$