You are not logged in.

#1 2024-07-29 15:52:16

aquilarubra
Member
From: Trieste, Italy
Registered: 2018-11-24
Posts: 113

[SOLVED] gpg keyring wiped of at each reboot after updates

Hello,
I'm experiencing a strange behavior. I thought it was limited to one of my computers, but now after the upgrades it happens to 2 of them.

Basically, if I do a pacman -Syu, it will give me an error of corrupt keys. I solve it by running:

pacman-key --init
pacman-key --populate

But it is very annoying that after a reboot, it is again corrupt and I have to run the commands again. How could I debug and fix that? Thanks

Last edited by aquilarubra (2024-08-01 15:29:30)

Offline

#2 2024-07-29 20:56:26

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] gpg keyring wiped of at each reboot after updates

findmnt -T /etc/pacman.d/gnupg

Do you maybe use stuff like https://wiki.archlinux.org/title/Improv … s_to_tmpfs ?
Is your system time off? (WIndows + local RTC, no NTP, …)

Offline

#3 2024-08-01 15:09:38

aquilarubra
Member
From: Trieste, Italy
Registered: 2018-11-24
Posts: 113

Re: [SOLVED] gpg keyring wiped of at each reboot after updates

/etc/pacman.d/gnupg is indeed mounted on tmpfs. I see in /etc/mtab that I have a lot of things on tmpfs.

I tried the following command, rebooted, but nothing changed:

systemctl mask tmp.mount

How do I disable tmpfs?

Offline

#4 2024-08-01 15:16:39

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] gpg keyring wiped of at each reboot after updates

What is the actual output for the command and what does your fstab look like?

Edit: systemd has recently introduced a lot of tmpfs mounts, much to the dismay of people looking at "df" wink
But that's not your problem here.

Last edited by seth (2024-08-01 15:17:32)

Offline

#5 2024-08-01 15:29:02

aquilarubra
Member
From: Trieste, Italy
Registered: 2018-11-24
Posts: 113

Re: [SOLVED] gpg keyring wiped of at each reboot after updates

Solved with this:

rm /etc/systemd/system/etc-pacman.d-gnupg.mount

The file was not owned by any package.

Thank you Seth for pointing me to the right direction! I guess it is because the system was installed from a CD that I made with archiso.

Offline

Board footer

Powered by FluxBB