From 09089179888ae82faea2c9ec8f42c1c20341f710 Mon Sep 17 00:00:00 2001 From: shengaoya Date: Thu, 25 Jul 2024 22:34:08 -0400 Subject: [PATCH] Resolve the error related to the sfc driver when installing the rpm package Signed-off-by: shengaoya --- kmod-i40e.spec | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/kmod-i40e.spec b/kmod-i40e.spec index d02c13a..a7fa5f4 100644 --- a/kmod-i40e.spec +++ b/kmod-i40e.spec @@ -427,30 +427,6 @@ uname -r | grep BOOT || /sbin/depmod -a > /dev/null 2>&1 || true # printf '%s\n' "${modules[@]}" | /usr/sbin/weak-modules --no-initramfs --add-modules #fi -if which dracut >/dev/null 2>&1; then - echo "Updating initramfs with dracut..." - if dracut --force ; then - echo "Successfully updated initramfs." - else - echo "Failed to update initramfs." - echo "You must update your initramfs image for changes to take place." - exit -1 - fi -elif which mkinitrd >/dev/null 2>&1; then - echo "Updating initrd with mkinitrd..." - if mkinitrd; then - echo "Successfully updated initrd." - else - echo "Failed to update initrd." - echo "You must update your initrd image for changes to take place." - exit -1 - fi -else - echo "Unable to determine utility to update initrd image." - echo "You must update your initrd manually for changes to take place." - exit -1 -fi - #depmod -a > /dev/null 2>&1 %preun @@ -460,7 +436,7 @@ cat %{_docdir}/%{name}/file.list | grep '\.ko$' | xargs realpath > /var/run/rpm- rm -rf /usr/local/share/%{pkg} %postun -depmod -a > /dev/null 2>&1 +# depmod -a > /dev/null 2>&1 if [ -x "/usr/sbin/weak-modules" ]; then modules=( $(cat /var/run/rpm-%{pkg}-modules.list) ) @@ -468,30 +444,6 @@ if [ -x "/usr/sbin/weak-modules" ]; then fi rm /var/run/rpm-%{pkg}-modules.list -if which dracut >/dev/null 2>&1; then - echo "Updating initramfs with dracut..." - if dracut --force ; then - echo "Successfully updated initramfs." - else - echo "Failed to update initramfs." - echo "You must update your initramfs image for changes to take place." - exit -1 - fi -elif which mkinitrd >/dev/null 2>&1; then - echo "Updating initrd with mkinitrd..." - if mkinitrd; then - echo "Successfully updated initrd." - else - echo "Failed to update initrd." - echo "You must update your initrd image for changes to take place." - exit -1 - fi -else - echo "Unable to determine utility to update initrd image." - echo "You must update your initrd manually for changes to take place." - exit -1 -fi - %if (%need_aux_rpm == 2) %package -n intel_auxiliary Summary: Auxiliary bus driver (backport) -- Gitee