From 2e479a72eb6042db07474795dd7fb16d866b848e Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Jun 29 2022 09:18:22 +0000 Subject: Add a missing space in the xen dracut config otherwise dracut complains quite loudly: ``` # dracut -f /etc/dracut.conf.d/xen.conf:add_drivers+="xen-netfront xen-blkfront " dracut: WARNING: +=" ": should have surrounding white spaces! dracut: WARNING: This will lead to unwanted side effects! Please fix the configuration file. ``` --- diff --git a/CentOS-8-EC2.ks b/CentOS-8-EC2.ks index b3ec051..084fe8c 100644 --- a/CentOS-8-EC2.ks +++ b/CentOS-8-EC2.ks @@ -148,7 +148,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/CentOS-8-Stream-EC2.ks b/CentOS-8-Stream-EC2.ks index 090fac0..21852d8 100644 --- a/CentOS-8-Stream-EC2.ks +++ b/CentOS-8-Stream-EC2.ks @@ -148,7 +148,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