<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#3333ff">
Jack Holden wrote:
<blockquote cite="mid443AE67D.8000003@starband.net" type="cite">Dan
wrote:
  <br>
  <blockquote type="cite">Jack Holden wrote:
    <br>
    <blockquote type="cite">I am running FC5 with the 2.6.15-1.2054
kernel and mkinitrd-5.0.32.&nbsp; When I try to create a new initrd,
mkinitrd fails with the error:
      <br>
&nbsp;&nbsp;&nbsp; /sbin/mkinitrd: line 975: initrd-2.6.15-1.2054_FC5.TEST.img
Permission denied
      <br>
I've tried using different file names with the same result.&nbsp; I've also
tried when logged in as root from the initial login (boot level 3) as
well as via su from both the cli and xterm.&nbsp; Same thing.&nbsp; I've also
tried building the initrd in the /boot and /root directories.
      <br>
      <br>
I believe that this is the version of mkinitrd that was included with
the installation.&nbsp; I have updated everything via yum update, but I
can't run the 2.6.16-2080 kernel yet (problem with dmraid).&nbsp; I have the
source packages for 2.6.15-2054 and 2.6.16-2080 installed.&nbsp; I have
successfully created initrd's before with this system, but I can't
remember if it was before or after yum update.&nbsp; (I think it was after
because it was an attempt to fix the dmraid problem with 2.6.16-2080.)
      <br>
      <br>
Can anyone suggest a fix or something to look at?&nbsp; I've looked at
mkinitrd and didn't see anything alarming about line 975.&nbsp; I appreciate
any advice.
      <br>
      <br>
Thanks,
      <br>
Jack Holden
      <br>
      <br>
    </blockquote>
Perhaps an SELinux issue. I don't know how to use it so check the vast
numbers of posts on this list about fixing those issues. Look in your
logs for avc denied messages.
    <br>
-Dan
    <br>
    <br>
  </blockquote>
  <br>
The suggestions I've gotten so far:
  <br>
  <br>
1 - Is /boot mounted as read only?
  <br>
I hate to admit this, but I don't set my systems up with separate
partitions.&nbsp; Everything is mounted under / (except SWAP).&nbsp; The file
system is mounted as read + write, and I've tried making the initrd in
/root and /boot with the same results.
  <br>
  <br>
2 - Could it be an SELinux problem?
  <br>
It's possible.&nbsp; I'm not much of an SELinux expert.&nbsp; However, I disabled
SELinux during the initial installation, and I think it's still
disabled.&nbsp; I checked the config file in /etc/selinux and it still
appears to be disabled.
  <br>
  <br>
Is anyone else having this problem?&nbsp; TIA.
  <br>
  <br>
Thanks,
  <br>
Jack Holden
  <br>
  <br>
  <br>
</blockquote>
Turns out this was a bone-head problem.&nbsp; I started digging around in
the mkinitrd script and realized that the script isn't path aware.&nbsp;
Target files like ./initrd.img are not created in the directory from
which you run the script.&nbsp; The script ends up in the /sys directory by
the time it finishes putting the image file together.&nbsp; Line 975 runs
gzip on the image (which is in /tmp).&nbsp; The script will fail if the
target file doesn't point it away from /sys.&nbsp; So, targets like
/boot/initrd.img or /root/initrd.img will work, but ones like
initrd.img or ./initrd.img will fail.<br>
<br>
Thanks to everyone who suggested things to look at.&nbsp; I hope this is
helpful to someone else down the road.<br>
<br>
Jack Holden<br>
<br>
</body>
</html>