From c3528c23be29165eb5f43bc1715f203e6a2ac331 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 7 Jun 2012 16:57:45 +0200 Subject: [PATCH] Exchange initrd-*.img and initramfs-*.img between CentOS 5 + 6 --- hooks/centos-5/25-setup-kernel | 2 +- hooks/centos-6/25-setup-kernel | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/centos-5/25-setup-kernel b/hooks/centos-5/25-setup-kernel index 945a3db..7adaf15 100755 --- a/hooks/centos-5/25-setup-kernel +++ b/hooks/centos-5/25-setup-kernel @@ -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 # diff --git a/hooks/centos-6/25-setup-kernel b/hooks/centos-6/25-setup-kernel index abaaa69..4c31baa 100755 --- a/hooks/centos-6/25-setup-kernel +++ b/hooks/centos-6/25-setup-kernel @@ -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