[bug-notifications] [alternatives 0004560]: /opt/csw/sbin/alternatives not installed in sparse zone

Mantis Bug Tracker noreply at opencsw.org
Sat Oct 2 01:13:30 CEST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4560 
====================================================================== 
Reported By:                holzi
Assigned To:                
====================================================================== 
Project:                    alternatives
Issue ID:                   4560
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-10-01 16:13 CEST
Last Modified:              2010-10-02 01:13 CEST
====================================================================== 
Summary:                    /opt/csw/sbin/alternatives not installed in sparse
zone
Description: 
I have CSWsudo installed in globle zone. Hence alternatives too.
If I create a sparse zone alternatives is not installed correct into the
sparse zone. Hence no symlinks for sudo.

pkgchk CSWalternatives              
ERROR: /opt/csw/sbin/alternatives
    pathname does not exist

The script is missing.
====================================================================== 

---------------------------------------------------------------------- 
 (0008313) phil (manager) - 2010-10-02 01:13
 https://www.opencsw.org/mantis/view.php?id=4560#c8313 
---------------------------------------------------------------------- 
This is really odd.
It was a known problem that symlinks might behave oddly in sparse zones.
But I had not previously seen that "regular" files were not properly
copied.
I have a hunch that if you had added the packages AFTER zone install, they
would come out okay. but for some reason, solaris is not behaving properly
on duplicating non-SUNW packages during "zoneadm install".

However, reguardless, I should also mention that we only fully support
/opt/csw in sparse zones, as type "inherit-pkg-dir". as mentioned in our
recently updated page on sharing zones. For just this sort of reason.

http://www.opencsw.org/use-it/sharing-optcsw


I just tested things the way you suggested, and saw the problem.
I then redid my steps, but this time defined /opt/csw as inherit-pkg-dir,
and it worked fine.



More information about the bug-notifications mailing list