fix for initramfs name

This commit is contained in:
Kolan Sh 2012-07-08 01:18:11 +04:00
parent 0b0a3d2344
commit 3bee5f70b0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ REVISION=`cat /usr/src/linux/include/config/kernel.release`
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" \
s~\/boot\/initramfs-[0-9][^ ]*~\/boot\/initramfs-$REVISION.img~g" \
/boot/grub/grub.conf
mount -o remount,ro /boot