Fedora image: add virtio-blk driver to initramfs

This commit is contained in:
fnux 2019-12-09 12:08:11 +01:00
parent 157379235c
commit 7e01fa5f06

View file

@ -137,6 +137,14 @@ run_root systemctl enable systemd-timesyncd.service
# Note: linux-firmware is not required our environment and takes almost 200M
# uncompressed but is a direct dependency of kernel-core...
run_root dnf -y install kernel grub2
# Add support for virtio block devices at boot time.
cat > /mnt/etc/dracut.conf.d/virtio-blk.conf <<EOF
add_drivers="virtio-blk"
EOF
run_root dracut --force
# Configure grub2.
run_root grub2-install --target=i386-pc "${NBD_DEVICE}"
run_root grub2-mkconfig -o /boot/grub2/grub.cfg