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

Systemd offline updates magic symlink #860

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sgtsnookums
Copy link

Creates a new type for the /system-update symlink used for offline updates, as defined by systemd.offline-updates and implemented by DNF's offline mode. Without approriate permissions, trying to use the offline updates get into an infinite boot loop where the system can't remove the symlink and boot normally again.

@sgtsnookums sgtsnookums force-pushed the systemd_offline_updates_magic_symlink branch 8 times, most recently from b455174 to a43cf24 Compare February 12, 2025 02:17
Adds support the "magic symlink" at /system-update or
/etc/system-update. The package manager is supposed to create this
link, a system generator checks for it, then the package manager needs
to read it and then delete it to clean up after itself. The initrc_t
permissions are because systemd provides a unit to forcibly cleanup in
case the update program doesn't for some reason.

Signed-off-by: Michael Snook <[email protected]>
with DNF version 5, the binary went from being named dnf-3 to dnf5 (no
hyphen); dnf-4 is a symlink to dnf-3 and so just gets bin_t

Signed-off-by: Michael Snook <[email protected]>
@sgtsnookums sgtsnookums force-pushed the systemd_offline_updates_magic_symlink branch from a43cf24 to f12c35f Compare February 13, 2025 19:25
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.

1 participant