>=sys-fs/udev-181 requires initramfs. Rules for dracut added.

This commit is contained in:
Kolan Sh 2012-07-08 01:13:47 +04:00
parent 9c2e59f13a
commit 0b0a3d2344
1 changed files with 6 additions and 1 deletions

View File

@ -59,7 +59,12 @@ make install
make modules_install
REVISION=`cat /usr/src/linux/include/config/kernel.release`
sed -i "s~\/boot\/vmlinuz-[23][^ ]*~\/boot\/vmlinuz-$REVISION~g" /boot/grub/grub.conf
which dracut &>/dev/null && dracut --hostonly --force /boot/initramfs-$REVISION.img $REVISION
sed -i "s~\/boot\/vmlinuz-[0-9][^ ]*~\/boot\/vmlinuz-$REVISION~g;
s~\/boot\/initramfs-[0-9][^ ]*~\/boot\/initramfs-$REVISION~g" \
/boot/grub/grub.conf
mount -o remount,ro /boot