Fedora image: add virtio-blk driver to initramfs
This commit is contained in:
parent
157379235c
commit
7e01fa5f06
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue