We removed svc:/system/filesystem/volfs and its package SUNWvolr in snv_51. Yet 
the service won't be deleted on upgrade, because the r.manifest class action 
script currently runs svccfg only when PKG_INSTALL_ROOT is /.

As a workaround, David Bustos suggested that we use postinstall script from an 
existing package to append 'svccfg delete volfs' to the upgrade profile. 
Incidentally, SUNWvolr is replaced by the new SUNWsmediar, i.e. we'll have in 
.pkghistory:

PKG=SUNWvolr
REPLACED_BY=SUNWsmediar
REMOVE_FROM_CLUSTER=ALL

So we can put something like this in SUNWsmediar/postinstall:

if [ "${PKG_INSTALL_ROOT:-/}" != "/" ]; then
         # upgrade
         cat >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade <<-EOF
         /usr/sbin/svccfg delete svc:/system/filesystem/volfs:default
EOF
fi

Doable?

-Artem.


Reply via email to