1
0
mirror of synced 2026-01-29 04:41:02 +00:00

Exchange initrd-*.img and initramfs-*.img between CentOS 5 + 6

This commit is contained in:
Axel Beckert
2012-06-07 16:57:45 +02:00
parent 5d1b6e0c13
commit c3528c23be
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ default=0
timeout=5
title CentOS ($KERNELVERSION)
kernel /boot/vmlinuz-$KERNELVERSION xen_pv_hvm=enable
initrd /boot/initramfs-$KERNELVERSION.img
initrd /boot/initrd-$KERNELVERSION.img
EOF
#

View File

@@ -64,7 +64,7 @@ default=0
timeout=5
title CentOS ($KERNELVERSION)
kernel /boot/vmlinuz-$KERNELVERSION
initrd /boot/initrd-$KERNELVERSION.img
initrd /boot/initramfs-$KERNELVERSION.img
EOF
# Some use lvm but mkinitrd will generate a wrong initrd when these are present.
@@ -72,7 +72,7 @@ rm -f ${prefix}/etc/lvm/backup/* ${prefix}/etc/lvm/archive/*
# Generate a correct initrd.
chroot ${prefix} mkinitrd --with=xenblk --with=xennet --preload=xenblk --preload=xennet\
-f /boot/initrd-$KERNELVERSION.img $KERNELVERSION
-f /boot/initramfs-$KERNELVERSION.img $KERNELVERSION
#
# Log our finish