OpenSolaris

Printable Version Enter a New Search
Bug ID 6339683
Synopsis SUNWvolr preinstall script broken, smf "smserver" service disabled
State 10-Fix Delivered (Fix available in build)
Category:Subcategory volmgt:daemon
Keywords onnv_triage | opensolaris | oss-sponsor
Sponsor frits
Submitter jk
Responsible Engineer Frits Vanderlinden
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_28
Fixed In snv_28
Release Fixed solaris_nevada(snv_28) , solaris_10u2(s10u2_05) (Bug ID:2132708)
Related Bugs 6339867
Submit Date 20-October-2005
Last Update Date 2-December-2006
Description
Category
   volmgt

Sub-Category
   other

Description
   When the diskless client is booted, the svc:/network/rpc/smserver:default
service is disabled, the diskless client is unable to mount removable media.


The SUNWvolr package's preinstall tries to find out if this is the first
attempt to install the package, or if the package has been installed before
and this is a upgrade install.  Note that the preinstall uses "pkginfo" 
without the -R option; when installing a diskless client the server's
SUNWvolr package is checked, not the diskless client's SUNWvolr package.

From SUNWvolr/install/preinstall:

if pkginfo SUNWvolr >/dev/null 2>&1; then
        if [ -f $BASEDIR/etc/rc3.d/S81volmgt ]; then
                touch $BASEDIR/var/volfs.tmp
        fi
else
        touch $BASEDIR/var/volfs.tmp
fi


preinstall detects that the SUNWvolr package is installed (on the server!), but 
$BASEDIR/etc/rc3.d/S81volmgt (on the diskless client) does not yet exist, so
preinstall believes it is upgrading a system where vold has been disabled.
In SUNWvolr's postinstall script, the commands to enable the smserver service
are not added to the diskless client's /var/svc/profile/upgrade script.


Problem #2: The use of "pkginfo SUNWvolr" in the preinstall script appears
be incorrect anyway, because it always returns success (even in the case when
this is the first attempt to install the SUNWvolr package; in this case
pkginfo report "STATUS:  partially installed").


Frequency
   Always

Regression
   Solaris 10

Steps to Reproduce
   On a server, pkgadd the SUNWvolr package to a diskless client that never had
the package installed:

pkgadd -R /export/root/client -d . SUNWvolr


Expected Result
   For a new installation, the svc:/network/rpc/smserver:default service should
be enabled.

When a CD media is inserted into the drive, it should be automatically mounted.


Actual Result
   The system is installed with svc:/network/rpc/smserver:default disabled.

CD media isn't mounted.  Instead, it is ejected.


Error Message(s)
   

Test Case
   
Submitter wants to work on bug
   Yes

Additional configuration information
   snv_22 diskless client, installed using a custom script which uses
"pkgadd -R /export/root/client ...".
Work Around
manually enable the svc:/network/rpc/smserver:default service with:

    svcadm enable svc:/network/rpc/smserver:default
Comments
N/A