[bug-notifications] [cupsd 0002184]: postinstall script has incorrect jumpstart test

Mantis Bug Tracker noreply at opencsw.org
Sat Nov 21 20:22:46 CET 2009


The following issue has been CLOSED 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=2184 
====================================================================== 
Reported By:                ucbscf
Assigned To:                maciej
====================================================================== 
Project:                    cupsd
Issue ID:                   2184
Category:                   packaging
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2007-03-27 16:50 CEST
Last Modified:              2009-11-21 20:22 CET
====================================================================== 
Summary:                    postinstall script has incorrect jumpstart test
Description: 
The test

test -f $BASEDIR/usr/sbin/svccfg -a -f $BASEDIR/usr/sbin/svcadm &&
class=smfyes

will always succeed, even in jumpstart, due to the use of BASEDIR. The
script will then try to register CUPS with SMF and fail:

Registering CUPS with SMF...
svccfg: Repository is read-only.
svccfg: Import of /a/opt/csw/var/svc/manifest/application/print/cups.xml
failed.

I believe the test should be:

test -f /usr/sbin/svccfg -a -f /usr/sbin/svcadm && class=smfyes

since /usr/sbin/svccfg and /usr/sbin/svcadm do not exist in jumpstart.
====================================================================== 

---------------------------------------------------------------------- 
 (0007015) maciej (manager) - 2009-11-21 20:22
 http://www.opencsw.org/mantis/view.php?id=2184#c7015 
---------------------------------------------------------------------- 
I'm positive this problem is now gone.  The mentioned code is no longer in
the package.  If there's a problem with the SMF scripts and jumpstart,
another bug should be filed agains cswclassutils.




More information about the bug-notifications mailing list