Talk:Dynamic Kernel Module Support

From ArchWiki
Jump to: navigation, search

systemd service not found

The dkms systemd service is no longer contained in the dkms package, it seems:

$ pacman --query dkms
dkms 2.2.0.3+git151023-5
$ sudo systemctl start dkms.service
Failed to start dkms.service: Unit dkms.service not found. 

Is the service obsolete now with the alpm hooks provided since pacman 5?

Cdo (talk) 21:30, 28 February 2016 (UTC)


Hi. It's seems like you are right. On a fresh Arch Linux install, I checked the files that have "dkms" in their filename and only found that:
[root@localhost user]# find / -name "*dkms*"
/var/cache/pacman/pkg/dkms-2.2.0.3+git151023-5-any.pkg.tar.xz
/var/lib/dkms
/var/lib/dkms/dkms_dbversion
/var/lib/pacman/local/dkms-2.2.0.3+git151023-5
/usr/bin/dkms
/usr/lib/dkms
/usr/lib/dkms/dkms_autoinstaller
/usr/share/libalpm/hooks/70-dkms-install.hook
/usr/share/libalpm/hooks/70-dkms-remove.hook
/usr/share/man/man8/dkms.8.gz
/usr/share/bash-completion/completions/dkms
/etc/dkms
Same for
[root@localhost user]# pacman -Ql dkms
dkms /etc/
dkms /etc/dkms/
dkms /etc/dkms/framework.conf
dkms /usr/
dkms /usr/bin/
dkms /usr/bin/dkms
dkms /usr/lib/
dkms /usr/lib/dkms/
dkms /usr/lib/dkms/alpm-hook
dkms /usr/lib/dkms/common.postinst
dkms /usr/lib/dkms/dkms_autoinstaller
dkms /usr/share/
dkms /usr/share/bash-completion/
dkms /usr/share/bash-completion/completions/
dkms /usr/share/bash-completion/completions/dkms
dkms /usr/share/libalpm/
dkms /usr/share/libalpm/hooks/
dkms /usr/share/libalpm/hooks/70-dkms-install.hook
dkms /usr/share/libalpm/hooks/70-dkms-remove.hook
dkms /usr/share/man/
dkms /usr/share/man/man8/
dkms /usr/share/man/man8/dkms.8.gz
dkms /var/
dkms /var/lib/
dkms /var/lib/dkms/
dkms /var/lib/dkms/dkms_dbversion
Since you are looking more familiar with these changes, how could we update this wiki article? -- wget (talk) 23:21, 28 February 2016 (UTC)
What is this mysterious alpm? I can't find anything on the wiki about it. I'm trying to figure out how to disable automatic dkms rebuilds. I think the key is 70-dkms-install.hook? JimRees (talk) 02:05, 7 March 2016 (UTC)
See Pacman#Hooks, but I do not know how to disable a hook though. --Fengchao (talk) 06:06, 12 May 2016 (UTC)
I played around with pacman hooks quite a bit and couldn't figure it out. I ended up replacing /usr/lib/dkms/alpm-hook with /usr/bin/true, but there must be a better way, and it should be documented here. JimRees (talk) 11:43, 12 May 2016 (UTC)
It's mentioned in the alpm-hooks(5) manpage: Creating a /etc/pacman.d/hooks/ln -s /dev/null 70-dkms-install.hook overrides the packaged install hook to not run automatically. --Indigo (talk) 17:53, 12 May 2016 (UTC)
Close. --Fengchao (talk) 06:14, 28 October 2016 (UTC)