Persistent error with rpm-ostree

Ever since I installed the nvidia drivers, I’m getting a persistent error with rpm-ostree the first time I try to install a new package:

error: Running %prein for akmods: bwrap(/bin/sh): Child process killed by signal 6; run journalctl -t 'rpm-ostree(akmods.prein)' for more information

When I run the command again, the install proceeds without this error. While it’s not system breaking (afaik), it is an annoyance I want to remove. Does anyone know what is going on with this error? It has something to do with groups.
I did have to go through this issue tracker to be able to install nvidia drivers and did the edits suggested there.

Here is the journal report:

Jul 17 20:25:51 fedora rpm-ostree(akmods.prein)[3682]: groupadd: /etc/group.4: lock file already used
Jul 17 20:25:51 fedora rpm-ostree(akmods.prein)[3682]: groupadd: cannot lock /etc/group; try again later.
Jul 17 20:25:51 fedora rpm-ostree(akmods.prein)[3684]: useradd: group ‘akmods’ does not exist
Jul 17 20:31:38 fedora rpm-ostree(akmods.prein)[4250]: groupadd: /etc/group.4: lock file already used
Jul 17 20:31:38 fedora rpm-ostree(akmods.prein)[4250]: groupadd: cannot lock /etc/group; try again later.
Jul 17 20:31:38 fedora rpm-ostree(akmods.prein)[4255]: useradd: group ‘akmods’ does not exist
– Boot cb4b0142040341868bdb4ac3c70a7961 –
Jul 17 21:06:06 fedora rpm-ostree(akmods.prein)[24017]: groupadd: /etc/group.4: lock file already used
Jul 17 21:06:06 fedora rpm-ostree(akmods.prein)[24017]: groupadd: cannot lock /etc/group; try again later.
Jul 17 21:06:06 fedora rpm-ostree(akmods.prein)[24021]: useradd: group ‘akmods’ does not exist
Jul 17 21:08:59 fedora rpm-ostree(akmods.prein)[24221]: groupadd: /etc/group.4: lock file already used
Jul 17 21:08:59 fedora rpm-ostree(akmods.prein)[24221]: groupadd: cannot lock /etc/group; try again later.
Jul 17 21:08:59 fedora rpm-ostree(akmods.prein)[24227]: useradd: group ‘akmods’ does not exist
– Boot ea39bd8e21454a30b0ad306821075b95 –
Jul 31 16:19:52 fedora rpm-ostree(akmods.prein)[7955]: groupadd: /etc/group.4: lock file already used
Jul 31 16:19:52 fedora rpm-ostree(akmods.prein)[7955]: groupadd: cannot lock /etc/group; try again later.
Jul 31 16:19:52 fedora rpm-ostree(akmods.prein)[7959]: useradd: group ‘akmods’ does not exist
– Boot 7eeb63e9bbba489581661740fe1b5ff4 –
Jul 31 16:26:06 fedora rpm-ostree(akmods.prein)[3153]: groupadd: /etc/group.4: lock file already used
Jul 31 16:26:06 fedora rpm-ostree(akmods.prein)[3153]: groupadd: cannot lock /etc/group; try again later.
Jul 31 16:26:06 fedora rpm-ostree(akmods.prein)[3156]: useradd: group ‘akmods’ does not exist
– Boot 01bc382b5bf04220a77a0fa913f843d9 –
Jul 31 16:39:12 fedora rpm-ostree(akmods.prein)[5452]: groupadd: /etc/group.4: lock file already used
Jul 31 16:39:12 fedora rpm-ostree(akmods.prein)[5452]: groupadd: cannot lock /etc/group; try again later.
Jul 31 16:39:12 fedora rpm-ostree(akmods.prein)[5469]: useradd: group ‘akmods’ does not exist

Have you tried Fedora 36 Silverblue rpm-ostree install of rpmfusion Nvidia driver fails with error: Running %post for akmod-nvidia · Issue #286 · fedora-silverblue/issue-tracker · GitHub?