Re: Who knows how to configure mock to build the kernel locally?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Jul 2020 17:01:07 -0000
"Mikhail Gavrilov" <mikhail.v.gavrilov@xxxxxxxxx> wrote:

> Who knows how to configure mock to build the kernel locally?
> I need to test some upstream patches, but I discovered that
> currently, I could not build kernel locally because of pesign not
> working in the mock environment. I do not want to use koji because I
> have enough power PC at home with Ryzen 3950X. Here I filled bug
> report https://bugzilla.redhat.com/show_bug.cgi?id=1855836 but no one
> answers me.

I build a custom kernel, and sign it using pesign with a locally
generated key, but using rpmbuild, not mock. However, what isn't clear
from your description, and my unfamiliarity with the mock build
process, is whether you have a local signing key installed in your EFI
public key database.  If you don't, I don't think it can work.  The
private key that kernels are signed with when they are official Fedora
kernels resides on the Fedora infrastructure. It is *not* going to be
transferred to your local machine as that would be a severe security
breach (it would no longer be a valid private key).  So, I think you
need to create a key pair on your local machine, and install the public
key in the EFI database on your local machine.
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux