Hallo,

I have the following problem: I'm trying to install rpm packages, signed with my local key, into mock chroot.

I use the following procedure:

  Create chroot:
      mock --arch=x86_64 -r rpm/cs8.cfg --init
  Copy my rpm key file into chroot:
      mock --arch=x86_64 -r rpm/cs8.cfg --cache-alterations --copyin /etc/pki/rpm-gpg/Local-KEY /etc/pki/rpm-gpg
  Install my package into chroot:
      mock --arch=x86_64 -r rpm/cs8.cfg --cache-alterations --install my-rpm-package

During package install I get the following error:

  Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/Local-KEY [Couldn't open file /etc/pki/rpm-gpg/Local-KEY]

I check chroot contents with:
  mock --arch=x86_64 -r rpm/cs8.cfg --shell "ls -l /etc/pki/rpm-gpg/Local-KEY"

and it shows me that the file is present. I doublecheck with:

  ls -l /var/lib/mock/cs8/root/etc/pki/rpm-gpg

and this also shows that file is present. The file is also present on host system in /etc/pki/rpm-gpg

What I'm doing wrong?

Best regards,

-- 
 \   / |			           |
 (OvO) |  Михаил Иванов                    |
 (^^^) |                                   |
  \^/  |      E-mail:  [email protected]   |
  ^ ^  |                                   |
_______________________________________________
buildsys mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to