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]
# 1
Can I ask which release of Solaris 10 you are using?
ForumModerator at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2
Sorry, I'm using another account right now, but it's the 6/06 release.Also, I noticed yesterday that Explorer won't even install unless /usr/bin/zonename is available, as the preinstall script tries to use it.
ceri_davies at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3
HiyaThank-you for updating us , we will pass your comments on to the engineers and hopefully get back to you with a comment shortly.
ForumModerator at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4
That's great, thanks.
ceri_davies at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5
Actually we do have one more question.Which build of Solaris are you using? Is it a custom build or one of the standard ones such as "End User"
ForumModerator at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 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

ceri_davies at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7
Hello,We are presently waiting for some general comments about your observation. Depending on the response we will raise a Change Request for you.Regards,Moderator.
ForumModerator at 2007-7-6 23:27:23 > top of Java-index,Administration Tools,Sun Update Connection-System...