From 534835a870ff807e3a445872f8d788cfb21eecd2 Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 8 Nov 2021 14:47:17 +0100 Subject: [PATCH] uncomment dracut config it appears to be useless --- leaves/bha.cfg | 12 +++++++++--- leaves/bhi.cfg | 10 ++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/leaves/bha.cfg b/leaves/bha.cfg index 04219d0..298bfd2 100644 --- a/leaves/bha.cfg +++ b/leaves/bha.cfg @@ -22,9 +22,15 @@ echo "vfio_virqfd" > /mnt/sysimage/etc/modules-load.d/vfio_virqfd.conf echo "options kvm_amd nested=1" >> /etc/modprobe.d/kvm.conf # Add support for nested-virtualization -dracut --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd " --force # Instruct dracut to load the vfio drivers -dracut --force # Regenerate initramfs +# The following part seems useless +# dracut --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd " --force # Instruct dracut to load the vfio drivers +# dracut --force # Regenerate initramfs +# Doesn't seem to work +# dracut: Cannot find /usr/lib/dracut/dracut-init.sh. +# dracut: Are you running from a git checkout? +# dracut: Try passing -l as an argument to /mnt/sysimage/usr/bin/dracut -grub2-mkconfig -o /mnt/sysimage/boot/grub2/grub.cfg # Update grub. Does it fail ? /usr/sbin/grub2-probe: error: failed to get canonical path of `LiveOS_rootfs'. +# The following part seems useless too. No need to regenerate grub +# grub2-mkconfig -o /mnt/sysimage/boot/grub2/grub.cfg # Update grub. Does it fail ? /usr/sbin/grub2-probe: error: failed to get canonical path of `LiveOS_rootfs'. %end # End of the %post section \ No newline at end of file diff --git a/leaves/bhi.cfg b/leaves/bhi.cfg index 0b86b91..417e039 100644 --- a/leaves/bhi.cfg +++ b/leaves/bhi.cfg @@ -24,13 +24,15 @@ echo "vfio-mdev" > /mnt/sysimage/etc/modules-load.d/vfio-mdev.conf # Load specif echo "options kvm_intel nested=1" >> /mnt/sysimage/etc/modprobe.d/kvm.conf # Add support for nested-virtualization -dracut --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd vfio-mdev kvmgt " --force # Instruct dracut to load the vfio drivers -dracut --force # Regenerate initramfs +# The following part seems useless +# dracut --add-drivers " vfio vfio-pci vfio_iommu_type1 vfio_virqfd vfio-mdev kvmgt " --force # Instruct dracut to load the vfio drivers +# dracut --force # Regenerate initramfs # Doesn't seem to work # dracut: Cannot find /usr/lib/dracut/dracut-init.sh. # dracut: Are you running from a git checkout? # dracut: Try passing -l as an argument to /mnt/sysimage/usr/bin/dracut -grub2-mkconfig -o /mnt/sysimage/boot/grub2/grub.cfg # Update grub. Does it fail ? /usr/sbin/grub2-probe: error: failed to get canonical path of `LiveOS_rootfs'. +# The following part seems useless too. No need to regenerate grub +# grub2-mkconfig -o /mnt/sysimage/boot/grub2/grub.cfg # Update grub. Does it fail ? /usr/sbin/grub2-probe: error: failed to get canonical path of `LiveOS_rootfs'. -%end # End of the %post section \ No newline at end of file +%end # End of the %post sectionsud \ No newline at end of file