Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 694648 - [RHEL6] Blank line at head of fstab
[RHEL6] Blank line at head of fstab
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: util-linux-ng (Show other bugs)
6.2
Unspecified Unspecified
low Severity low
: rc
: 6.2
Assigned To: Karel Zak
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-07 16:35 EDT by Frank Hirtz
Modified: 2011-12-06 12:10 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-06 12:10:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1691 normal SHIPPED_LIVE Low: util-linux-ng security, bug fix, and enhancement update 2011-12-05 20:02:36 EST

  None (edit)
Description Frank Hirtz 2011-04-07 16:35:49 EDT
Description of problem:
Anaconda leaves a blank like at the beginning of /etc/fstab:

<snip>

#
# /etc/fstab
# Created by anaconda on Fri Jun 11 00:48:49 2010
#
</snip>

From the man page, it's not clear that blank lines are valid in the file, and indeed some (external) programs that parse it have issues with the blank line. I'd request that we either change anaconda so we don't get the blank like at the head, or change the manpage so that we indicate that blank lines are valid. 

Version-Release number of selected component (if applicable):
RHEL6

How reproducible:
Always

Steps to Reproduce:
1. Install
2. Check fstab
3.
  
Actual results:

File starts with a blank line


Expected results:

File shouldn't (or we should document that it can have blank lines)

Additional info:
Comment 1 Chris Lumens 2011-04-11 11:16:47 EDT
my_getmntent from the util-linux-ng source indicates it knows how to skip blank lines.  That should at least be noted in the documentation.
Comment 2 Karel Zak 2011-04-12 04:07:06 EDT
OK, upstream man page has been updated (commit ca6182333e1417bde216abd8e223f23989a45445).
Comment 6 errata-xmlrpc 2011-12-06 12:10:50 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1691.html

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