|
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 ...".
|