Bug 155437 - mkinitrd can produce unusable images
mkinitrd can produce unusable images
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Jones
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-04-20 07:31 EDT by Martin Poole
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.2.16-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-28 10:39:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Martin Poole 2005-04-20 07:31:34 EDT
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).

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