should work with dkms now

This commit is contained in:
eoli3n 2022-02-15 15:25:59 +01:00
parent fa7f561e98
commit 37b2f69d71
2 changed files with 2 additions and 5 deletions

3
TODO
View file

@ -1,2 +1 @@
- add community repo to kernel build date in any cases
- fallback to DKMS method
- test dkms fallback method

4
init
View file

@ -122,8 +122,7 @@ download_package () {
dkms_init () {
print "Installing linux-headers from archive.org for current running kernel"
print "Installing linux-headers for current running kernel"
pacman -U "https://archive.org/download/archlinux_pkg_linux-headers/linux-headers-$1-x86_64.pkg.tar.zst" --noconfirm
}
@ -181,7 +180,6 @@ else
# DKMS fallback
print "No zfs-linux package was found for current running kernel, fallback on DKMS method"
print "Installing linux-headers and zfs-dkms"
dkms_init "$kernel_version_fixed_for_headers"
print "Install zfs-dkms"