exanic-software icon indicating copy to clipboard operation
exanic-software copied to clipboard

exanic-dkms rpm: fatal error in postinstall should be avoided

Open AdiPircalabu opened this issue 2 years ago • 0 comments

Hi, trying to automate Exanic software installation and hit a snag. If dkms fails in %post it breaks the anaconda installation. This spec change avoids the failure and allows the installation to complete and for the exanic modules to be built at a later stage:

%post dkms
dkms add -m %{name} -v %{version}-%{release} --rpm_safe_upgrade || true
dkms build -m %{name} -v %{version}-%{release} --rpm_safe_upgrade || true
dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade || true

Looking forward to what your thoughts are.

AdiPircalabu avatar Apr 12 '22 05:04 AdiPircalabu