I have RH 5.1. When /etc/rc.d/rc.sysinit is being executed, I get
messages like
/etc/rc.d/rc.sysinit: /sbin/depmod: Permission denied
and a lot of other similar messages concerning files in /bin, /sbin, and
/dev/null and /etc/rc.d/init.d/random. (One message for each
read/write/execute attempt, I think).
The file and directory permissions are OK, though.
I am using the rc.sysinit file that was created during installation, and
it used to work fine. I commented out parts of the file, and the problem
seems to appear during the execution of the following section (but not
in the if [ -n "$kernelfile" ] block):
# Get the modules ready to go -- we use awk here as cut is in /usr/bin
rm -f /lib/modules/preferred
if [ -n $USEMODULES ]; then
set `cat /proc/cmdline`
while [ $# -gt 0 ]; do
if echo $1 | grep '^BOOT_IMAGE=' > /dev/null ; then
image=`echo $1 | awk -F= '{ print $2 }'`
kernelfile=`/sbin/lilo -I $image`
if [ -n "$kernelfile" ]; then
kernelname=`echo $kernelfile | awk -F- '{ print $1 }'`
versioninfo=`echo $kernelfile | sed
"s|${kernelname}-||"`
if [ "$kernelname" = "/boot/vmlinuz" -a \
-d /lib/modules/$versioninfo -a \
$versioninfo != `uname -r` ]; then
ln -sf $versioninfo /lib/modules/preferred
fi
fi
fi
shift
done
fi
Any ideas?
Linuxless in Seattle