• Pacman -Syu DKMS install zfs/0.7.4 -k error - alpm-hooks order?


    Hey,

    This will probably apply to other versions of ZFS, too.

    ZFS and SPL 7.4 packages are in the Antergos repo now, I installed them using the typical # pacman -Syu

    DKMS install for SPL needs to be created before one can do a DKMS zfs install, otherwise ZFS modules won’t be functioning and ZFS won’t work, in addition to mkinitcpio not being able to create the appropriate initramfs images to be able to boot if you’re running ZFS on root (!)

    This just happened to me. It seems to be pretty random - sometimes it happens, sometimes it doesn’t.

    Thankfully, I just uninstalled ZFS and re-installed it and it built the DKMS modules for ZFS the second time since the SPL DKMS had already been built.

    Apparently per this person’s post on Arch BBS, you can just run the dkms command:

    $ sudo dkms install zfs/0.7.4 -k 4.14.5-1-ARCH
    

    (Replacing zfs and kernel with your versions if they’re different, obviously…)

    I’m looking into a way to modify the hooks so they build in a certian order using alpm-hooks in /usr/share/libalpm/hooks – does anyone have any experience with this?

  • @AveryFreeman me not at the moment… but i was wondering why no one else at the forum is join into ZFS discussions ???

    #ZFS !!!

  • @joekamprad said in Pacman -Syu DKMS install zfs/0.7.4 -k error - alpm-hooks order?:

    but i was wondering why no one else at the forum is join into ZFS discussions

    i have no knowlegde about it, and never used ZFS, but i assure you i’m doing my best reading the posts.

  • @AveryFreeman said in Pacman -Syu DKMS install zfs/0.7.4 -k error - alpm-hooks order?:

    I’m looking into a way to modify the hooks so they build in a certian order using alpm-hooks in /usr/share/libalpm/hooks – does anyone have any experience with this?

    Please, please, please, do this! I’ve been wanting to do this for ages and never found the time.

    You can base your hook on 70-dkms-install.hook, but make it run before this one, and make it build spl module. 70-dkms-install will then build the other modules (including the zfs one).

  • @karasu We’re in luck! This is addressed in Arch Flyspray specifically for ZFS as a bug from someone last February. Last update 12/13/2017

    https://bugs.archlinux.org/task/52901?project=1&cat[0]=2&string=dkms

    The patch has made it to the AUR, with the hope that it will be merged upstream, but it has still not been implemented in the official package. However, here’s the AUR link:

    https://aur.archlinux.org/packages/dkms-sorted/

    and

    https://aur.archlinux.org/cgit/aur.git/tree/alpm-hook?h=dkms-sorted

    I’ll try out the AUR package and see how it works. Seems to have gotten good feedback so far.

  • @karasu @developers would it be possible to install dkms-sorted in place of dkms by default in future Antergos releases?

    https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support#Upgrades

pacman113 syu9 dkms8 zfs0.7.41 Posts 6Views 844
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.