sconadm requires zoneadm - dependency not registered
I've found this with a few packages on Solaris 10, but this one is particularly annoying.
Packages which want to check that they are running in the global zone tend to do so by running one of the zone* tools. For example, the initsma startup script from SUNWsmmgr does so by running zonename, while sconadm seems to run zoneadm.
However, if I don't have either of those tools installed on a system, it would make sense for the scripts to assume that they aren't zoned and continue anyway, e.g., for initsma, instead of doing
ZONENAME=`/usr/bin/zonename`
try (the dot makes sense if you read the rest of the script):
if [ -x /usr/bin/zonename ]; then
ZONENAME=`/usr/bin/zonename`
else
ZONENAME=.
fi
If that isn't a satisfactory solution, then at least have the packages record the dependency, which they don't currently.
[957 byte] By [
WALESCAR] at [2007-11-26 9:09:32]

# 6
Custom, via Jumpstart. Here's one of the profiles, verbatim except I obfuscated the NFS server (sorry, I know how annoying that can be):
# profile keywords profile values
# - -
install_typeinitial_install
system_typestandalone
partitioningexplicit
filesysmirror:d10 c0t0d0s0 c0t1d0s0 2048 /
filesysc0t0d0s1 4096 swap
filesysc0t1d0s1 4096 swap
filesysmirror:d20 c0t0d0s3 c0t1d0s3 5120 /usr
filesysmirror:d30 c0t0d0s4 c0t1d0s4 2048 /export/home
filesysmirror:d40 c0t0d0s5 c0t1d0s5 2048 /var
# Slice 6 for ZFS
filesysc0t0d0s6 free
filesysc0t1d0s6 free
metadb c0t0d0s7 count 2 size 8192
metadb c0t1d0s7 count 2 size 8192
clusterSUNWCfwcmp
clusterSUNWCfwshl
clusterSUNWCgcc
clusterSUNWCmda
clusterSUNWCntp
clusterSUNWCreq
clusterSUNWCsmapi
clusterSUNWCssh
clusterSUNWCvol
packageSUNWGlib
packageSUNWadmc
packageSUNWadmfr
packageSUNWadmfw
packageSUNWarc
packageSUNWbind
packageSUNWbindr
packageSUNWbtool
packageSUNWctpls
packageSUNWdoc
packageSUNWeurf
packageSUNWgcmn
packageSUNWggrp
packageSUNWfruid
packageSUNWfruip
packageSUNWgtar
packageSUNWhea
packageSUNWi15cs
packageSUNWi15rf
packageSUNWi1cs
packageSUNWi1of
packageSUNWj3rt
packageSUNWj5rt
packageSUNWless
packageSUNWlibm
packageSUNWlibmr
packageSUNWlibms
packageSUNWlxsl
packageSUNWman
packageSUNWmfrun
packageSUNWpool
packageSUNWpoolr
packageSUNWsfman
packageSUNWsmagt
packageSUNWsmcmd
packageSUNWsmdoc
packageSUNWsmmgr
packageSUNWsprot
packageSUNWtoo
packageSUNWuiu8
packageSUNWxwfnt
packageSUNWxwplt
packageSUNWxwplr
packageSUNWxwrtl
packageSUNWxwice
# These are required for smpatch and sconadm. It's quite a lot.
# XXX - nor is it enough. You have to have zoneadm installed too.
#packageSUNWbrg
#packageSUNWcacaort
#packageSUNWccccr
#packageSUNWccccrr
#packageSUNWccfw
#packageSUNWccsign
#packageSUNWcsmauth
#packageSUNWppror
#packageSUNWpprou
#packageSUNWscn-base
#packageSUNWscn-base-r
#packageSUNWsam
#packageSUNWsamr
#packageSUNWscnprm
#packageSUNWscnprmr
#packageSUNWscnsom
#packageSUNWsensor
package SMCiconv add nfs://softserv.example.ac.uk/export/packages/10/sparc/libiconv-1.8-sol10-sparc- local
package SMCpopt add nfs://softserv.example.ac.uk/export/packages/10/sparc/popt-1.7-sol10-sparc-loca l
package SMCrsync add nfs://softserv.example.ac.uk/export/packages/10/sparc/rsync-2.6.8-sol10-sparc-l ocal
patch 118833-18,122856-02 nfs softserv.example.ac.uk:/export/patch_clusters/10/sparc