FS#31815 - 'pacman-key --init' malfunction on installed system

Attached to Project: Release Engineering
Opened by Esteban Carnevale (alfplayer) - Friday, 05 October 2012, 20:06 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 06 October 2012, 04:50 GMT
Task Type Bug Report
Category ArchISO
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity High
Priority Normal
Reported Version testbuild (specify!)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I run this on a system installed with Arch Install Scripts using an iso created with archiso-git:

# pacman-key --init
mkdir: cannot create directory '/etc/pacman.d/gnupg': File exists
touch: cannot touch '/etc/pacman.d/gnupg/pubring.gpg': No such file or directory
touch: cannot touch '/etc/pacman.d/gnupg/secring.gpg': No such file or directory
gpg: keyblock resource `/etc/pacman.d/gnupg/secring.gpg': No such file or directory
gpg: keyblock resource `/etc/pacman.d/gnupg/pubring.gpg': No such file or directory
gpg: Fatal: /etc/pacman.d/gnupg: directory does not exist!
chmod: cannot access '/etc/pacman.d/gnupg/pubring.gpg': No such file or directory
chmod: cannot access '/etc/pacman.d/gnupg/trustdb.gpg': No such file or directory
chmod: cannot access '/etc/pacman.d/gnupg/secring.gpg': No such file or directory
touch: cannot touch '/etc/pacman.d/gnupg/gpg.conf': No such file or directory
chmod: cannot access '/etc/pacman.d/gnupg/gpg.conf': No such file or directory
/usr/bin/pacman-key: line 268: /etc/pacman.d/gnupg/gpg.conf: No such file or directory
/usr/bin/pacman-key: line 268: /etc/pacman.d/gnupg/gpg.conf: No such file or directory
/usr/bin/pacman-key: line 268: /etc/pacman.d/gnupg/gpg.conf: No such file or directory
/usr/bin/pacman-key: line 268: /etc/pacman.d/gnupg/gpg.conf: No such file or directory
/usr/bin/pacman-key: line 268: /etc/pacman.d/gnupg/gpg.conf: No such file or directory
gpg: keyblock resource `/etc/pacman.d/gnupg/secring.gpg': No such file or directory
gpg: keyblock resource `/etc/pacman.d/gnupg/pubring.gpg': No such file or directory
gpg: Fatal: /etc/pacman.d/gnupg: directory does not exist!
gpg: keyblock resource `/etc/pacman.d/gnupg/secring.gpg': No such file or directory
gpg: keyblock resource `/etc/pacman.d/gnupg/pubring.gpg': No such file or directory
gpg: Generating pacman keychain master key...
gpg: no writable public keyring found: Unknown system error
gpg: key generation failed: Unknown system error
gpg: Done
can't create `/etc/pacman.d/gnupg/random_seed': No such file or directory
==> Updating trust database...
gpg: keyblock resource `/etc/pacman.d/gnupg/secring.gpg': No such file or directory
gpg: keyblock resource `/etc/pacman.d/gnupg/pubring.gpg': No such file or directory
gpg: Fatal: /etc/pacman.d/gnupg: directory does not exist!
==> ERROR: Trust database could not be updated.
#

This is solved after 'rm /etc/pacman.d/gnupg' and running 'pacman-key --init' again.

archiso-git switched to systemd (http://projects.archlinux.org/archiso.git/commit/?id=56b1e931bc27def5d0a3b51a6282653389fac732) and creates a symlink from /etc/pacman.d/gnupg to /run/pacman.d/gnupg (http://projects.archlinux.org/archiso.git/tree/configs/releng/root-image/etc/tmpfiles.d/pacman-init.conf?id=56b1e931bc27def5d0a3b51a6282653389fac732).

This symlink, instead of gnupg directory contents with keyring and data, is copied to the installed system (https://github.com/falconindy/arch-install-scripts/blob/master/pacstrap.in#L116).
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Saturday, 06 October 2012, 04:50 GMT
Reason for closing:  Fixed
Comment by Pierre Schmitz (Pierre) - Friday, 05 October 2012, 22:30 GMT Comment by Esteban Carnevale (alfplayer) - Saturday, 06 October 2012, 00:52 GMT
Thank you.

I created a new iso with updated archiso. Now it's a directory with proper contents on the installed system and it's possible to use 'pacman -S' without pacman-key.

Loading...