fix for initramfs name
This commit is contained in:
parent
0b0a3d2344
commit
3bee5f70b0
|
@ -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
|
which dracut &>/dev/null && dracut --hostonly --force /boot/initramfs-$REVISION.img $REVISION
|
||||||
|
|
||||||
sed -i "s~\/boot\/vmlinuz-[0-9][^ ]*~\/boot\/vmlinuz-$REVISION~g;
|
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
|
/boot/grub/grub.conf
|
||||||
|
|
||||||
mount -o remount,ro /boot
|
mount -o remount,ro /boot
|
||||||
|
|
Loading…
Reference in New Issue