sed expression for grub1 fixed

This commit is contained in:
Kolan Sh 2013-04-04 12:22:46 +04:00
parent b4b036109b
commit b88fe0cb24
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ fi
[ -f /boot/grub/grub.conf ] && \
sed -i "s~\/boot\/vmlinuz-[0-9][^ ]*~\/boot\/vmlinuz-$REVISION~g;
s~\/boot\/kernel-genkernel-`uname -m`-[0-9][^]*~\/boot\/kernel-genkernel-`uname -m`-$REVISION~g;
s~\/boot\/kernel-genkernel-`uname -m`-[0-9][^ ]*~\/boot\/kernel-genkernel-`uname -m`-$REVISION~g;
s~\/boot\/initramfs-[0-9][^ ]*~\/boot\/initramfs-$REVISION.img~g" \
/boot/grub/grub.conf