Yubikey not detected when inserted at boot; need to reinsert?

Hi all,

I have a Yubikey Nano 4 that I leave plugged into my desktop PC, and I have it tied to some KeePassXC databases. Oddly, the key won’t display in the app as available if I have recently rebooted. I have to unseat and reinsert the key, and then KeePassXC can see it. Was wondering if anyone else has had this problem and what the cleanest technical fix was.

I’m running the latest Tumbleweed, latest KeePassXC from the Tumbleweed repo.

Thanks

Hi
Yes this is likely since the remove/plugin will trigger the udev rule for plug-in media.

On your next boot open a terminal and as root user run the command;


udevadm trigger

Does the device appear now?

Likely a udev rule will need to be crafted so if the device is present it will be mounted on boot rather than add a /etc/fstab entry.

The

udevadm trigger

command indeed did the job. Now I’ll have to look into what I’ll need to do craft a proper udev rule.

Hi
So as root user run the command;


udevadm monitor

Now unplug the device and replug, you should see all the info needed to identify the device for your rule.

Good one, malcomlewis. It’s one that I’ll put in my Commands.txt file.
As elegant a solution as I’ve ever seen. Beautiful.
Man, I love linux, and especially openSUSE, and of course, this forum.