disable dracut
This commit is contained in:
parent
4bf0066808
commit
7300e9bea3
@ -200,7 +200,7 @@ EOF
|
|||||||
add_drivers+=" hv_vmbus hv_netvsc hv_storvsc "
|
add_drivers+=" hv_vmbus hv_netvsc hv_storvsc "
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
dracut -f -v
|
#dracut -f -v
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -233,8 +233,8 @@ EOF
|
|||||||
|
|
||||||
echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf
|
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
|
||||||
KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n')
|
#KERNEL_VERSION=$(rpm -q kernel --qf '%{V}-%{R}.%{arch}\n')
|
||||||
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
#dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
||||||
|
|
||||||
cat >> /etc/chrony.conf << EOF
|
cat >> /etc/chrony.conf << EOF
|
||||||
# Amazon Time Sync Service
|
# Amazon Time Sync Service
|
||||||
@ -629,7 +629,7 @@ EOF
|
|||||||
popd
|
popd
|
||||||
#echo "Regenerating kernel"
|
#echo "Regenerating kernel"
|
||||||
#KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
#KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
||||||
dracut -f -v
|
#dracut -f -v
|
||||||
rm -rf /etc/ssh/ssh_host_*
|
rm -rf /etc/ssh/ssh_host_*
|
||||||
|
|
||||||
# Might not be needed for 10
|
# Might not be needed for 10
|
||||||
|
Loading…
Reference in New Issue
Block a user