From 3bee5f70b0208c72477f8e58d01697627db89c13 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sun, 8 Jul 2012 01:18:11 +0400 Subject: [PATCH] fix for initramfs name --- sbin/kernel-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/kernel-rebuild.sh b/sbin/kernel-rebuild.sh index b4252db..73df83f 100755 --- a/sbin/kernel-rebuild.sh +++ b/sbin/kernel-rebuild.sh @@ -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