Bosboot error and work-around

With AIX (6.1 TL6) upon cancelling a smit update_all operation (due to defunct process) an unclean exit was experienced. Any future smit update_all’s would fail, and ask that an installp -C be performed.  This could happen in other versions of AIX as well.

However, when attempting to run installp -C it fails with the following information.

0503-409 installp:  bosboot verification starting...
0503-497 installp:  An error occurred during bosboot verification processing.

Confirm boot loader:

bootlist -m normal -o
hdisk0 blv=hd5 pathid=0

Next attempt a boot install:

bosboot -ad /dev/hdisk0
0301-154 bosboot: missing proto file: /tmp/bosboot_8257718_12395/boot_ODM/CuAtDef

To get around this, the trick is to force bosboot to finish cleanly, then the cleanup will happen. Then put the bosboot script back to normal. Hence, edit /usr/sbin/bosboot and on the 2nd line (below #!/bin/ksh put “exit 0”). Save, quit, then do the installp -C to cleanup the failed fileset install packages.

Afterwords, edit bosboot script again, and remove the exit 0