@anlorsp thank you.
@archdevlab sure. I'll add it in next release.
Git Clone URL: | https://aur.archlinux.org/linux-xanmod.git (read-only, click to copy) |
---|---|
Package Base: | linux-xanmod |
Description: | The Linux kernel and modules with Xanmod patches |
Upstream URL: | http://www.xanmod.org/ |
Licenses: | GPL2 |
Provides: | KSMBD-MODULE, NTFS3-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE |
Replaces: | virtualbox-guest-modules-arch, wireguard-arch |
Submitter: | Yoshi2889 |
Maintainer: | figue (figuepluto, jfigueras) |
Last Packager: | figue |
Votes: | 132 |
Popularity: | 1.18 |
First Submitted: | 2017-02-14 09:40 (UTC) |
Last Updated: | 2025-03-23 19:58 (UTC) |
@anlorsp thank you.
@archdevlab sure. I'll add it in next release.
Adding
scripts/config --disable CONFIG_IMA_ARCH_POLICY
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
Hi you should consider fixing tomoyo in the config file like linux-lqx package https://aur.archlinux.org/cgit/aur.git/commit/?h=linux-lqx&id=86bc172b309b60f09b27a6aacc6c0361d57f24de
@wustdsh Have you solved the problem? I also met the 'Key was rejected by service'. I have found this project: https://aur.archlinux.org/packages/arch-sign-modules, but I wonder if it helps.
@kingdomkind just pull the key you need: gpg --recv-keys XXXX
Hey guys, is this meant to be built skipping pgp verification? As i'm currently getting an error with that
I configured secure boot using sbctl. When using linux-xanmod
, it can boot up normally but nvidia related modules don't load:
systemd-modules-load[143]: Failed to insert module 'nvidia': Key was rejected by service
systemd-modules-load[143]: Failed to insert module 'nvidia_modeset': Key was rejected by service
systemd-modules-load[143]: Failed to insert module 'nvidia_uvm': Key was rejected by service
systemd-modules-load[143]: Failed to insert module 'nvidia_drm': Key was rejected by service
As far as I know dkms automatically generates /var/lib/dkms/mok.key
to signs modules, what if I tell dkms to sign nvidia modules using the key that was used to sign the built-in modules when compiling linux-xanmod? It probably doesn't help, in the same case extra/linux-zen
is able to load nvidia, and I'm wondering what options the xanmod patch changed to cause this problem.
EDIT:
Maybe CONFIG_IMA_ARCH_POLICY=y
. The solution seems to be to use the kernel's built-in signatures as I mentioned, or to use slim? or to recompile to remove this option.
@Riedler yeah, I personally use only a reduced myconfig, so I didn't have to maintain a full config:
cat .config/linux-xanmod/myconfig
scripts/config --enable CONFIG_IWLWIFI_DEBUG
scripts/config --module CONFIG_MMC_BLOCK
scripts/config --set-val MMC_BLOCK_MINORS 8
scripts/config --module CONFIG_SND_DMAENGINE_PCM
scripts/config --module CONFIG_SND_COMPRESS_OFFLOAD
scripts/config --module CONFIG_AC97_BUS
scripts/config --enable CONFIG_INPUT_TABLET
scripts/config --enable CONFIG_TRACING
scripts/config --enable CONFIG_KPROBE_EVENTS
scripts/config --enable CONFIG_BPF_EVENTS
@figue nothing too crazy I think. Not even sure if any of this goes through to linux-xanmod.
/etc/makepkg → https://pastebin.com/S5GJqpqZ
as for myconfig - yeah somewhat, see here: https://github.com/RiedleroD/dotfiles/blob/master/linux-xanmod.conf
I should probably stop using the myconfig, I don't have time to maintain the custom one anymore…
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: