dracut fixes

This commit is contained in:
Louis Abel 2024-05-04 14:48:52 -07:00
parent 93c7769921
commit 4bf0066808
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -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'