Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 449777

Summary: /usr/bin/logger cannot be used when /usr is non-root partition
Product: Red Hat Enterprise Linux 5 Reporter: Craig Magina <craig.magina>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: cward, jturner
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.13-0.49.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 20:45:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Craig Magina 2008-06-03 14:41:40 UTC
Description of problem:
If the /usr partition is a separate partition from / then it cannot be used to
replace initlog in any init scripts that run before /usr gets mounted.

Version-Release number of selected component (if applicable):
util-linux-2.13-0.47.el5

How reproducible:
With the below setup, every time.

Steps to Reproduce:
1. Have /usr as a separate partition and use logger in an /etc/sysconfig/modules
script.
2.
3.
  
Actual results:
logger: command not found

Expected results:
The message gets logged out to the syslog.

Additional info:

Comment 1 Robert N. Evans 2008-06-13 13:54:09 UTC
This problem occurs when it is necessary to log a message from an init script. 
In RHEL4 we used initlog for this purpose.  However in RHEL5 the following
message prints out:
 WARNING: initlog is deprecated and will be removed in a future release

We take the deprecation seriously and attempted to be proactive about not using
initlog.  However due to this bug we do not have a good alternative to the
deprecated utility.

Comment 2 RHEL Program Management 2008-07-22 09:40:14 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Jay Turner 2008-09-05 20:15:08 UTC
Just a note.  This fix is busted as it relocates logger from /usr/bin to /bin.  This will cause problems for anyone that is calling logger via absolute path, including the redhat-lsb package.  See bug 461266.

Comment 6 Karel Zak 2008-09-06 10:20:48 UTC
*** Bug 461266 has been marked as a duplicate of this bug. ***

Comment 7 Karel Zak 2008-09-06 10:22:25 UTC
(In reply to comment #5)
> Just a note.  This fix is busted as it relocates logger from /usr/bin to /bin. 
> This will cause problems for anyone that is calling logger via absolute path,
> including the redhat-lsb package.  See bug 461266. 

 Fixed. Errata updated. Thanks.

Comment 8 Jay Turner 2008-09-08 14:15:01 UTC
The /usr/bin/logger symlink fix is confirmed with 2.13-0.49.el5.

Comment 11 errata-xmlrpc 2009-01-20 20:45:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0070.html