Red Hat Bugzilla – Bug 155436
mkinitrd can produce unusable images
Last modified: 2007-11-30 17:07:17 EST
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):
Steps to Reproduce:
1. put 'umask 0111' in /root/.bashrc
2. create an initrd
3. boot it.
no modules load
modules should load.
script should probably force umask, and possibly even use -p on the copies so
the datestamps match original (allows easy matchup).
-HEAD now sets umask itself.