Skip to content
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

feat(live): Initial inst.dud=URI functionality #2182

Merged
merged 6 commits into from
Mar 21, 2025

Conversation

kobliha
Copy link
Contributor

@kobliha kobliha commented Mar 20, 2025

Problem

Customers and partners need a way to patch the Live Media with PTF or similar mechanism

Solution

There is a new agama-dud systemd service that runs after the agama-self-update so it overwrites anything that the self-update could have changed automatically. This service calls agama-dud script that goes over all inst.dud=... in /run/agama/cmdline.d/agama.conf, downloads those packages and force-installs/upgrades them with rpm.

The solution is "inspired" by the self-update functionality and other scripts and services from the project ;)

Things to solve later

  • Everything is an RPM, no other type of DUD is supported yet
  • There are no checks, no validation, etc.
  • Logging should be added too

Testing

Tested only manually by adding links to RPMs into /run/agama/cmdline.d/agama.conf and running the new script

Example of the output

Downloading DUD from https://download.opensuse.org/repositories/artwork:/wallpapers/openSUSE_Tumbleweed/noarch/propaganda00-0-2.73.noarch.rpm
File saved to /tmp/agama-WT3vi0ryww.rpm
warning: /tmp/agama-WT3vi0ryww.rpm: Header V3 DSA/SHA1 Signature, key ID 5b8ee893: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:propaganda00-0-2.73 ################################# [100%]

- No zypper calls are actually needed
kobliha added 2 commits March 21, 2025 10:55
- Let's keep the messages now, we'll see if that needs more love
- Don't depend on X11 as that service is going to be removed
@kobliha kobliha merged commit 58c734a into agama-project:master Mar 21, 2025
1 check passed
@kobliha kobliha deleted the inst-dud-feature branch March 21, 2025 10:21
@imobachgs imobachgs mentioned this pull request Mar 27, 2025
imobachgs added a commit that referenced this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants