diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-06 04:22:09 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-06 04:22:09 +0200 |
commit | c9e8493bace8888129dd432bdd976a0c3aa322e2 (patch) | |
tree | 1a49e4c3b478b19a30f397cac887a254426d2a6c /templates/post-arcmsr | |
parent | f03a04b8036b85ba452ff195bc3fddfc71ba5cb3 (diff) | |
download | kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.tar.gz kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.tar.bz2 kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.tar.xz kickstart-c9e8493bace8888129dd432bdd976a0c3aa322e2.zip |
CentOS8 and testing with ipecompute* servers
Diffstat (limited to 'templates/post-arcmsr')
-rw-r--r-- | templates/post-arcmsr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/post-arcmsr b/templates/post-arcmsr new file mode 100644 index 0000000..be04566 --- /dev/null +++ b/templates/post-arcmsr @@ -0,0 +1,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 |