working !

This commit is contained in:
eoli3n 2022-02-16 13:15:45 +01:00
parent 401d95e9e4
commit 0199589d21
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,7 @@ In order to build the module, DKMS needs the ``linux-headers`` package for the r
It extracts running kernel version and try to find a matching ZFS module in ``Archzfs`` repositories. It extracts running kernel version and try to find a matching ZFS module in ``Archzfs`` repositories.
If it doesn't, it fallbacks to the DKMS build of the ZFS module. If it doesn't, it fallbacks to the DKMS build of the ZFS module.
In that case, the script uses [Arch Linux Archive](https://wiki.archlinux.org/index.php/Arch_Linux_Archive#How_to_restore_all_packages_to_a_specific_date) to install the ``linux-headers`` package required for DKMS. In that case, the script uses [Arch Linux Archive](https://wiki.archlinux.org/index.php/Arch_Linux_Archive#How_to_restore_all_packages_to_a_specific_date) to install the ``linux-headers`` and ``base-devel`` packages required for DKMS. You need at least ~6Gb RAM to use that method to be able to store packages in cowspace.
### How to use ### How to use

3
init
View file

@ -130,9 +130,8 @@ download_package () {
} }
dkms_init () { dkms_init () {
# Init everything to be able to install zfs-dkms
#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
print "Init Archlinux Archive repository" print "Init Archlinux Archive repository"
archiso_version=$(sed 's-\.-/-g' /version) archiso_version=$(sed 's-\.-/-g' /version)
init_archlinux_archive "$archiso_version" init_archlinux_archive "$archiso_version"