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

Mantis Bug Tracker noreply at opencsw.org
Sun Nov 15 12:20:26 CET 2009


The following issue requires your FEEDBACK. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=2184 
====================================================================== 
Reported By:                ucbscf
Assigned To:                maciej
====================================================================== 
Project:                    cupsd
Issue ID:                   2184
Category:                   packaging
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2007-03-27 16:50 CEST
Last Modified:              2009-11-15 12:20 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0006976) maciej (manager) - 2009-11-12 20:26
 http://www.opencsw.org/bugtrack/view.php?id=2184#c6976 
---------------------------------------------------------------------- 
This bug might be not relevant any more because the SMF support is now
handled by cswclassutils. Can you please check if it's still a problem?




More information about the bug-notifications mailing list