Bug 697568 - files in /sbin depending on /usr
Summary: files in /sbin depending on /usr
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kexec-tools
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Cong Wang
QA Contact: Kernel Dump QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-18 15:47 UTC by Karel Volný
Modified: 2013-09-30 02:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-25 04:59:51 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Karel Volný 2011-04-18 15:47:30 UTC
Description of problem:
/sbin/makedumpfile depends 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 makedumpfile is not essential, it should be moved to /usr/sbin

2) If makedumpfile has to stay in /sbin, then it 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):
kexec-tools-2.0.0-145.el6

How reproducible:
always

Steps to Reproduce:
1. run the test /CoreOS/libtirpc/Sanity/bz558937-sbin-dependencies-in-usr
  
Actual results:
:: [   FAIL   ] :: File /sbin/makedumpfile (from kexec-tools-2.0.0-145.el6.x86_64) depends on /usr 
:: [   INFO   ] :: The affected dependencies:
:: [   INFO   ] :: - /usr/lib64/libdw.so.1 (from elfutils-libs-0.148-1.el6.x86_64)
:: [   INFO   ] :: - /usr/lib64/libelf.so.1 (from elfutils-libelf-0.148-1.el6.x86_64)
:: [   INFO   ] :: - /usr/lib64/liblzma.so.0 (from xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64)

Expected results:
(no such failures)

Additional info:

Comment 2 Cong Wang 2011-04-19 12:12:57 UTC
% whereis makedumpfile
makedumpfile: /usr/sbin/makedumpfile /usr/share/man/man8/makedumpfile.8.gz

It is already in /usr/sbin...


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