-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable zchunk and deltarpm before first template boot #137
base: main
Are you sure you want to change the base?
Conversation
d62ac02
to
9604d34
Compare
PipelineRetry |
The description doesn't match the implementation. The implementation uses those options during template build (and also package builds with legacy builder - which isn't mentioned in the description), but does not set it in the dnf config of the built template. Anyway, I don't like putting too much customization into template builder scripts. If anything, it should be done via some package (either by shipping some config file, if config drop-ins are supported, or by adjusting config in post-install script). This is to ensure uniform result regardless if the user got older template and updated or got newer template directly. |
That’s a bug 😆.
The purpose of this PR is to ensure that the customization is used during the template build itself. |
template_rpm/distribution.sh
Outdated
--setopt=deltarpm=False | ||
--setopt=zchunk=False | ||
--setopt=gpgcheck=1 | ||
--setopt=localpkg_gpgcheck=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reliably breaks building any non-minimal template (see CI), because it prevents installing package that ships rpmfusion key. Don't do that.
5447d11
to
65f2fb9
Compare
On Tue, Jun 25, 2024 at 08:46:37PM -0700, Demi Marie Obenour wrote:
Which package does this belong in? `core-agent-linux`?
Yes, I think this one.
…--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
|
This disables zchunk as well as deltarpm, reducing DNF's attack surface. A change to core-agent-linux will do the same for the built templates once they are installed.
65f2fb9
to
a0cea5a
Compare
This disables zchunk as well as deltarpm, reducing DNF's attack surface. Since zchunk applies to metadata fetches, it must be turned off before the template is installed, as otherwise the template will use it when fetching metadata to check for updates.
This also ensures that users who install packages manually before using Qubes OS's updater get a hardened DNF configuration.