Bug 144009 - mkinitrd fails when POSIXLY_CORRECT env variable is set
Summary: mkinitrd fails when POSIXLY_CORRECT env variable is set
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: mkinitrd
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-03 18:19 UTC by Jay Pharis
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-06-06 20:06:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jay Pharis 2005-01-03 18:19:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0

Description of problem:
I had set POSIXLY_CORRECT=1 in /etc/profile and /etc/bashrc.  When I
ran up2date to install the latest kernels, mkinitrd fails with the
following:

awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension
awk: cmd. line:2: fatal: match: third argument is a gawk extension 

In addition, unless the env variable _POSIX2_VERSION is set to some
other value (I used 199209),  also get the following tail error from
mkinitrd:

tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information. 

I created a support request with this information, 452082.

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


How reproducible:
Always

Steps to Reproduce:
1. set the env variables listed above
2. run up2date, or just mkinitrd
3. profit
    

Actual Results:  see above

Additional info:

Comment 1 Peter Jones 2005-06-06 20:06:45 UTC
Don't do that.

Comment 2 Need Real Name 2006-04-12 19:15:02 UTC
Well, as smart as that answer/solution was, there SEEMS to be a problem WHEN
this variable is set, --and-- it seems to BE in the kickstart environment.

I was attempting to pre-load a kernel update within kickstart and this SAME
error occured.  I would have had no idea the cause it it wasn't for this post of
Jay Pharis.  Thanks!


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