After checking the process hierarchy and seeing that gnome-keyring-daemon is in fact started by systemd, I spent more time searching through systemd and after a while I wound something, so I must correct myself. While there is no regular systemd service that starts gnome-keyring-daemon, there is a user service that does it. I managed to disable it using the --user flag:
systemctl --user mask gnome-keyring-daemon
But after rebooting there still is a gnome-keyring-daemon process running. Checking the process hierarchy again, I can see that it is literally being started by init as in the root parent process of everything. There are 4 instances all started like this:
/usr/bin/gnome-keyring-daemon --daemonize --login
/etc/xdg/autostart/gnome-keyring-*.desktop can be ruled out because those files would start it with different flags:
You can use systemctl status to check which service, slice and/or scope the processes are associated with. Do not use grep, you can search in the pager like in less.
Yes it looks like GDM. Remove or comment out all lines that includes pam_gnome_keyring.so . You might want to check all files in that folder for pam_gnome_keyring.so . Just a warning, PAM is kind of important. Make sure you know how to login if GDM stopped working.
Okay, if I can’t even get access from tty in case of GDM going bad, I don’t know how I could log in.
Can I maybe create a new snapshot in Timeshift before making the changes and then revert to that snapshot from outside the OS in case GDM goes bad?
Of course, also I just wanted to warn you since PAM is important, but all PAM lines with pam_gnome_keyring.so are optional, so if you just commented these lines out, there is no problem.
I was not able to boot anymore after making these changes. I had to manually restore the files from a live USB stick. I was not able to restore my timeshift snapshot because Manjaro apparently just instantly boots without a grub menu to restore a timeshift snapshot.
GDM and also PAM has nothing to do with the boot process. A boot problem has nothing to do the changing files in /etc/pam.d/. So what do you mean by not “able to boot anymore”.
You need to hint ESC with the normal Grub configuration to see the menu.
I don’t know when exactly it happened because Manjaro seems to use the quiet kernel parameter. But I didn’t get beyond the boot splash logo. However you may define “booting”, it happened before the login screen even showed up. It just froze with the vendor boot logo.
I tried that but it threw me into rescue mode so that I wasn’t even able to type my LUKS password.