-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove several obsolete migrations #409
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These cleanups were added in 2016. Every converted system has executed these by now.
This reverts commit 152c5b8. This migration script was first added in 3.7.5, released in late 2019. All computers that shipped with the configuration this migration script updates must have booted with this script at least 3 times – final 3.9 release, final 4.0 release, and final 5.1 release – before they reach 6.x, so this script has had at least 3 (and more likely hundreds) of opportunities to run.
This reverts commit 753e3e7. As its message says: > After a checkpoint we can drop this script and unit. This commit was first included in 5.0.0 but it was backported to 4.0.10 as 6c9ea9a. So all systems running Endless OS 6 have passed through 2 checkpoints; and the eos4.0 version of eos-updater checks that this configuration field is set before allowing the system to update to 5.x.
This reverts commit 7aece6f and commit c3ad579. This one-time migration script was included in eos4.0 when we standardized on driverless printing. Any computer running Endless OS 6 which was originally installed with eos3.x has booted at least the final 4.0.x release and the final 5.1.x release, so it is guaranteed that this script has been run.
This reverts commit dc15364 and commit 8d8ba8f. This hook was added in order to support the companion app helper service, which made the content within knowledge apps accessible on the local network, to be consumed by an Android app we commissioned. We removed the companion app helper service from the OS many moons ago.
wjt
force-pushed
the
remove-obsolete-migrations
branch
2 times, most recently
from
June 7, 2024 14:11
0bb8170
to
54e642b
Compare
A bit of archaeology first! This tmpfiles.d snippet was added as part of our Endless Key V1 work, in commit 13aca9c. The rest of that commit was reverted in commit fd5bb2e but this file was left in place (without being installed). Commit 1e369f4 then started installing it again, along with some code that would add an override at /run/flatpak/overrides/org.learningequality.Kolibri when booting the Endless Key V1 system. This was first shipped in Endless OS 3.8.6. I removed that in commit 0aefc1b (shipped in Endless OS 5.0.0) but missed this file. Unfortunately this snippet was not running only on the Endless Key V1 environment, but on every Endless OS system that booted any version since 3.8.6 and before 5.0.0. So a large number (probably the majority) of Endless OS systems now have a symbolic link at /var/lib/flatpak/overrides. This is kind of bad because it means `flatpak override --system` doesn't persist across a reboot. Stop creating the symbolic link, and its target in /run; then clean up the dangling symbolic link. Unfortunately tmpfiles.d has no directive that specifies “delete a dangling symbolic link” so we have to write a cleanup unit to do that. We can drop the cleanup unit after the next checkpoint. https://phabricator.endlessm.com/T35475
The service that used this stamp file was removed in e009273.
All current systems have had ample opportunity to clean up these stamp files.
This was for the EC100 which we have long since discontinued. https://phabricator.endlessm.com/T5226
wjt
force-pushed
the
remove-obsolete-migrations
branch
from
June 7, 2024 14:12
54e642b
to
ca3e87c
Compare
dbnicholson
approved these changes
Jun 11, 2024
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.
🧹
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://phabricator.endlessm.com/T35475