Update zfs-install-redhat-alma.sh

added fixit parm
This commit is contained in:
kneutron 2021-04-07 12:44:18 -05:00 committed by GitHub
parent 4b8f8e062f
commit 46a689996f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,15 @@
# xxx EDITME
zver="2.0.4"
if [ "$1" = "fixit" ]; then
# recompile module for new/current kernel
cd /usr/local/src/zfs-$zver
time rpm --reinstall zfs-dkms*.rpm && modprobe zfs
dmesg |grep ZFS
zpool version
exit 0;
fi
yum install -y epel-release
#yum install -y https://zfsonlinux.org/epel/zfs-release.el8_3.noarch.rpm
#gpg --import --import-options show-only /etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux