Skip to content

Instantly share code, notes, and snippets.

Fermulator fermulator

Block or report user

Report or block fermulator

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fermulator
fermulator / reinstall-dkms-modules-pluszfs.sh
Created Sep 12, 2018 — 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
View reinstall-dkms-modules-pluszfs.sh
#!/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
You can’t perform that action at this time.