Hi everyone. I'm installing Scientific Linux 6.0 from a kickstart and
see the following error in the /root/install.log when the installation
completes:
/sbin/new-kernel-pkg: line 296: /sbin/dracut: No such file or directory
mkinitrd failed
Unfortunately the initramfs file is not created and the install does not
boot. )-: I've tried adding dracut to the %packages list but Anaconda
decides to install it and dracut-kernel after the kernel RPM so it still
doesn't work. A very similar kickstart file on RHEL6 installs without a
hitch.
I wonder if there is a missing install dependency in the kernel package?
Here's a workaround:
%post
KERNEL_RPMS=`rpm -qa | grep ^kernel-2.6`
for KERNEL_RPM in \$KERNEL_RPMS; do
rpm -e --justdb --nodeps \$KERNEL_RPM
yum install --nogpgcheck -y \$KERNEL_RPM
done
Tim.