OpenSolaris

Printable Version Enter a New Search
Bug ID 6690225
Synopsis SUNWcakrx.i cannot create /a/etc/mach during postinstall script.
State 10-Fix Delivered (Fix available in build)
Category:Subcategory xvm:kernel
Keywords
Responsible Engineer Mark Johnson
Reported Against snv_88
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_88
Fixed In snv_88
Release Fixed solaris_nevada(snv_88)
Related Bugs 6683443 , 6693868 , 6699787
Submit Date 17-April-2008
Last Update Date 23-April-2008
Description
PIT found that during installations of all the x86 systems (including
DomU systems) that there was a partial fail of pkgadd of SUNWcakrx.i

from the install_log we see :

<snip>
Installation of <SUNWcar> was successful.
2441 blocks

Installation of <SUNWjdmk-base> was successful.
/a/var/sadm/pkg/SUNWcakrx/install/postinstall: /a/etc/mach: cannot create
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <SUNWcakrx> failed.
122 blocks

Installation of <SUNWjavadb-common> was successful.
</snip>

Where the script shows :

<snip>

# Check xpv_psm entry exists in etc/mach
grep -w "xpv_psm" $BASEDIR/etc/mach > /dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "xpv_psm" >> $BASEDIR/etc/mach
fi

</snip>

Unfortunately, this wouldn't work anyways as the SUNWos86r adds 
the /etc/mach file later in the process so the file gets written 
with the proper contents and the 'xpv_psm' entry is missing.
The postinstall bits should probably be removed and xvm_psm moved to uts/intel/os/mach.  Have to check and see if the i.mach class action script would need to be updated to.

This only effects systems which are clean installed. upgrades and bfus are not affected.
Work Around
manually add xvm_psm to /etc/mach
That shoud be add xpv_psm not add xvm_psm
Comments
N/A