From 4bf00668086ed6cce40fa60fdd1748cb6a3cc087 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sat, 4 May 2024 14:48:52 -0700 Subject: [PATCH] dracut fixes --- config.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config.sh b/config.sh index 17cde91..454a9f6 100644 --- a/config.sh +++ b/config.sh @@ -619,18 +619,18 @@ EOF chown -R vagrant:vagrant /home/vagrant/.ssh echo 'vag' > /etc/yum/vars/infra - #echo blacklist floppy > /etc/modprobe.d/nofloppy.conf - #pushd /etc/dracut.conf.d + echo blacklist floppy > /etc/modprobe.d/nofloppy.conf + pushd /etc/dracut.conf.d # Enable VMware PVSCSI support for VMware Fusion guests. - #echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf - #echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf + echo 'add_drivers+=" vmw_pvscsi "' > vmware-fusion-drivers.conf + echo 'add_drivers+=" hv_netvsc hv_storvsc hv_utils hv_vmbus hid-hyperv "' > hyperv-drivers.conf # There's no floppy controller, but probing for it generates timeouts - #echo 'omit_drivers+=" floppy "' > nofloppy.conf - #popd + echo 'omit_drivers+=" floppy "' > nofloppy.conf + popd #echo "Regenerating kernel" #KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n') - #dracut -f /boot/initramfs-${KERNEL_VERSION}.img ${KERNEL_VERSION} - #rm -rf /etc/ssh/ssh_host_* + dracut -f -v + rm -rf /etc/ssh/ssh_host_* # Might not be needed for 10 ex -s /etc/pam.d/su <<'EOF'