Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 155437

Summary: mkinitrd can produce unusable images
Product: [Fedora] Fedora Reporter: Martin Poole <mpoole>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.2.16-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-28 15:39:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Poole 2005-04-20 11:31:34 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).