summaryrefslogtreecommitdiffstats
path: root/templates/post-arcmsr
blob: be04566a2b157c1b46359feda9ed1fff1d936188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
yum -y install https://www.elrepo.org/elrepo-release-8.0-2.el8.elrepo.noarch.rpm
yum -y install kmod-arcmsr

# But there is already a newer kernel. 
# weak-modules does not work automatically, add-kernel does not help
# by default dracut copies module for old kernel (good), but does not load it. -I copies module, but depmod is not executed.
kver=$(rpm -qv kernel | cut -d '-' -f 2-)
/sbin/weak-modules --add-kernel $kver
cp -r /lib/modules/4.18.0-80.el8.x86_64/extra/ /lib/modules/$kver
depmod -a
cp /boot/initramfs-$kver.img /boot/initramfs-$kver.img.orig
dracut -f /boot/initramfs-$kver.img -I /lib/modules/$kver/extra/arcmsr/arcmsr.ko --force-drivers arcmsr $kver