Bug 697567 - files in /sbin depending on /usr
Summary: files in /sbin depending on /usr
Keywords:
Status: CLOSED DUPLICATE of bug 593269
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-18 15:47 UTC by Karel Volný
Modified: 2015-09-28 02:19 UTC (History)
4 users (show)

Fixed In Version: iscsi-initiator-utils-6.2.0.872-19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-20 02:07:59 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0733 0 normal SHIPPED_LIVE iscsi-initiator-utils bug fix and enhancement update 2011-05-19 09:47:49 UTC

Description Karel Volný 2011-04-18 15:47:25 UTC
Description of problem:
/sbin/iscsiadm and /sbin/iscsid depend on files in /usr but /usr needs not to be available (mounted) when /sbin binaries are used.

From FHS
(http://www.pathname.com/fhs/pub/fhs-2.3.html#SBINSYSTEMBINARIES)

"/sbin contains binaries essential for booting, restoring, recovering, and/or repairing the system in addition to the binaries in /bin."

There are several options:

1) If iscsiadm or iscsid are not essential, they should be moved to /usr/sbin

2) If iscsiadm or iscsid have to stay in /sbin, then they must be able to run without /usr mounted, i.e. the dependencies have to be moved from /usr/lib* to /lib*, or linked statically.

3) If neither of the above is possible (desirable), the exception has to be justified and documented fo further reference (so far I haven't found any relevant docs).

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.872-10.el6

How reproducible:
always

Steps to Reproduce:
1. run the test /CoreOS/libtirpc/Sanity/bz558937-sbin-dependencies-in-usr
  
Actual results:
:: [   FAIL   ] :: File /sbin/iscsiadm (from iscsi-initiator-utils-6.2.0.872-10.el6.x86_64) depends on /usr 
:: [   INFO   ] :: The affected dependencies:
:: [   INFO   ] :: - /usr/lib64/libcrypto.so.10 (from openssl-1.0.0-10.el6.x86_64)
:: [   FAIL   ] :: File /sbin/iscsid (from iscsi-initiator-utils-6.2.0.872-10.el6.x86_64) depends on /usr 
:: [   INFO   ] :: The affected dependencies:
:: [   INFO   ] :: - /usr/lib64/libcrypto.so.10 (from openssl-1.0.0-10.el6.x86_64)


Expected results:
(no such failures)

Additional info:

Comment 2 Mike Christie 2011-04-18 17:17:06 UTC
This should be fixed in iscsi-initiator-utils-6.2.0.872-19.

Comment 8 Mike Christie 2011-04-20 02:07:59 UTC

*** This bug has been marked as a duplicate of bug 593269 ***

Comment 11 Laura Bailey 2011-05-12 07:57:18 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The iscsiadm and iscsid commands depended on files in /usr, but did not require that /usr was mounted when they were used. This resulted in failures without useful error messages when the user attempted to use these commands when /usr was not mounted. This issue has been corrected, and these failures no longer occur.

Comment 13 Laura Bailey 2011-05-13 01:39:58 UTC
Deleted Technical Notes Contents.

Old Contents:
The iscsiadm and iscsid commands depended on files in /usr, but did not require that /usr was mounted when they were used. This resulted in failures without useful error messages when the user attempted to use these commands when /usr was not mounted. This issue has been corrected, and these failures no longer occur.


Note You need to log in before you can comment on or make changes to this bug.