From e9be780fe4e43aee497a71d46634e0703b218324 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 3 Apr 2023 09:54:03 -0700 Subject: [PATCH] fix xen keys --- Rocky-8-EC2-Base.ks | 2 +- Rocky-8-EC2-LVM.ks | 2 +- cloud/rocky-ec2-base.ks | 2 +- cloud/rocky-ec2-lvm.ks | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Rocky-8-EC2-Base.ks b/Rocky-8-EC2-Base.ks index 6c37edc..453a37b 100644 --- a/Rocky-8-EC2-Base.ks +++ b/Rocky-8-EC2-Base.ks @@ -179,7 +179,7 @@ EOL # enable resizing on copied AMIs echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf -echo 'add_drivers+="xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf +echo 'add_drivers+=" xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf # Rerun dracut for the installed kernel (not the running kernel): KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n') dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION diff --git a/Rocky-8-EC2-LVM.ks b/Rocky-8-EC2-LVM.ks index 838840c..b80d471 100644 --- a/Rocky-8-EC2-LVM.ks +++ b/Rocky-8-EC2-LVM.ks @@ -179,7 +179,7 @@ EOL # enable resizing on copied AMIs echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf -echo 'add_drivers+="xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf +echo 'add_drivers+=" xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf # Rerun dracut for the installed kernel (not the running kernel): KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n') dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION diff --git a/cloud/rocky-ec2-base.ks b/cloud/rocky-ec2-base.ks index a482a85..039fe77 100644 --- a/cloud/rocky-ec2-base.ks +++ b/cloud/rocky-ec2-base.ks @@ -124,7 +124,7 @@ EOL # enable resizing on copied AMIs echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf -echo 'add_drivers+="xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf +echo 'add_drivers+=" xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf # Rerun dracut for the installed kernel (not the running kernel): KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n') dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION diff --git a/cloud/rocky-ec2-lvm.ks b/cloud/rocky-ec2-lvm.ks index bf9be4e..9dc8339 100644 --- a/cloud/rocky-ec2-lvm.ks +++ b/cloud/rocky-ec2-lvm.ks @@ -124,7 +124,7 @@ EOL # enable resizing on copied AMIs echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf -echo 'add_drivers+="xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf +echo 'add_drivers+=" xen-netfront xen-blkfront "' > /etc/dracut.conf.d/xen.conf # Rerun dracut for the installed kernel (not the running kernel): KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n') dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION