As per the documentation here and here, you can set repository_gpgcheck and package_gpgcheck, and if they are omitted, the package manager's default is used instead. The second link also mentions: If not set, no value is appended into the repository configuration file..
I end up with these lines in the repo files in /etc/zypp/repos.d/... in the created image:
repo_gpgcheck = 0
pkg_gpgcheck = 0
If I do zypper lr in the built image, it still shows it as having repo GPG checks enabled though, which I don't really understand, but those 2 lines in the repo config definitely look wrong.
Side note: package_gpgcheck is missing from the image description documentation.
Expected behaviour
That kiwi-ng doesn't add any extra lines to the repo files.
Steps to reproduce the behaviour
I tried to make a minimal setup for this, here's the config.xml:
The zypper behavior is correct after all, setting them to 0 won't turn off the checks, it will just allow unsigned repos/packages without asking (mentioned somewhere here.
Problem description
As per the documentation here and here, you can set
repository_gpgcheck
andpackage_gpgcheck
, and if they are omitted, the package manager's default is used instead. The second link also mentions:If not set, no value is appended into the repository configuration file.
.The code for zypper though does set these values to 0 if they are omitted, I'm not familiar with the codebase but these lines look to be the reason: https://github.com/OSInside/kiwi/blob/53f1c72f9f1514c990ab668d8d8efe4ec46470e4/kiwi/repository/zypper.py#L326
I end up with these lines in the repo files in
/etc/zypp/repos.d/...
in the created image:If I do
zypper lr
in the built image, it still shows it as having repo GPG checks enabled though, which I don't really understand, but those 2 lines in the repo config definitely look wrong.Side note:
package_gpgcheck
is missing from the image description documentation.Expected behaviour
That kiwi-ng doesn't add any extra lines to the repo files.
Steps to reproduce the behaviour
I tried to make a minimal setup for this, here's the config.xml:
And then using kiwi-ng:
OS and Software information