Skip to content

Instantly share code, notes, and snippets.

@fermulator
fermulator / reinstall-dkms-modules-pluszfs.sh
Created September 12, 2018 03:45 — forked from Trucido/reinstall-dkms-modules-pluszfs.sh
ugly hacky script to rebuild all dkms modules plus manually force zfs if it's intree for debian/ubuntu
#!/usr/bin/env bash
# rebuild/reinstall all dkms modules.
# double check there's no others missing too afterwards.
#template(){
#KVER=x.x.x-arch
#ZVER=x.x.x.x-x
#dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | while read line; do ls /var/lib/initramfs-tools | xargs -n 1 dkms build --force $line -k; done
#dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | while read line; do ls /var/lib/initramfs-tools | xargs -n 1 dkms install --force $line -k; done
#dkms build --force -m spl -v $ZVER -k $KVER