Mantis - cupsd
Viewing Issue Advanced Details
2184 packaging minor always 2007-03-27 16:50 2009-11-21 20:22
ucbscf  
maciej  
normal  
closed  
fixed  
none    
none  
0002184: postinstall script has incorrect jumpstart test
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.
Issue History
2009-11-12 20:26 maciej Note Added: 0006976
2009-11-12 20:28 maciej Assigned To mmayer =>
2009-11-12 20:28 maciej Status assigned => feedback
2009-11-12 22:20 maciej Status feedback => assigned
2009-11-12 22:20 maciej Assigned To => maciej
2009-11-15 12:20 maciej Status assigned => feedback
2009-11-21 20:22 maciej Note Added: 0007015
2009-11-21 20:22 maciej Status feedback => closed
2009-11-21 20:22 maciej Resolution open => fixed

Notes
(0006976)
maciej   
2009-11-12 20:26   
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?
(0007015)
maciej   
2009-11-21 20:22   
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.