Bug 155436 - mkinitrd can produce unusable images
Summary: mkinitrd can produce unusable images
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mkinitrd
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Peter Jones
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2005-04-20 11:31 UTC by Martin Poole
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-05-03 18:56:50 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Martin Poole 2005-04-20 11:31:27 UTC
Description of problem:

mkinitrd honours umask.

If the user has set a umask in their .bashrc (or even globally) that quashes the
execute bit then the binaries copied to the image lose their execute bit and
fail to run at boot.

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

How reproducible:

Steps to Reproduce:
1. put 'umask 0111' in /root/.bashrc
2. create an initrd
3. boot it.
Actual results:

no modules load

Expected results:

modules should load.

Additional info:

script should probably force umask, and possibly even use -p on the copies so
the datestamps match original (allows easy matchup).

Comment 1 Peter Jones 2005-05-03 18:56:50 UTC
-HEAD now sets umask itself.

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