-
Notifications
You must be signed in to change notification settings - Fork 22
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
Do not start pm in upgrade mode #39
Comments
Thanks, this may resolve issue #33 as well. Edit: No it won't, see #33 (comment). |
I'm sorry, I'd like to get some context on this. Change proposed is to add a With the goal to not interfere with anything going on during a system update. Qs:
[*] with definitions of reliable adapted to the reality of how SFOS/Jolla changes happen... ;) |
As:
HTH |
Implements Issue sailfishos-patches#39 sailfishos-patches#39
commit f68816c Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39
Implements Issue sailfishos-patches#39 sailfishos-patches#39
commit d14a3ee Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39 commit 03e4f18 Author: Peter G <[email protected]> Date: Sun Oct 3 14:04:44 2021 +0200 Redesign About page, add License and Source links (sailfishos-patches#68) * [ui] Redesign About page, add License and Source links See Issue sailfishos-patches#12 sailfishos-patches#12
commit d14a3ee Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39
commit d14a3ee Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39
commit d14a3ee Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39
commit d14a3ee Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39
Thank you. Much clearer now. @Olf0 Can you please test nephros@d14a3ee somehow? (Well, it's just the single line added :) ). |
Implements Issue sailfishos-patches#39 sailfishos-patches#39
Well, then it is time for me to report the things I do not understand WRT @CODeRUS' original issue description, "Add os-update.target to conflicts of pm service": See below.
Just adding
But at least re-reading systemd's man-page for "offline updates", specifically "Recommendation 4" convinces me that @CODeRUS, can you please provide some background on |
Good hints on where to look for some more! I conclude that I found that the packagekit package does contain some things related to OS-update: For one there's a snippet of documentation on how to use the built-in feature: https://github.com/sailfishos/PackageKit/blob/master/docs/offline-updates.txt And looking at the installed package on my device:
Aaand there's also
of which
with
So assuming that mechanism is used during OS updates, we should either
It looks to me like just having that Condition is sufficient for the purpose of not starting if update is running. |
One more thing: Our RPM installs or changes Or we could set NO_PM_PRELOAD as an environment variable, but I don't know how to set that globally for everything and only in system-update mode. |
Implements Issue sailfishos-patches#39 sailfishos-patches#39
…
Yes, now I remember to have seen this pattern a couple of times in systemd units created by Jolla.
Thanks, while I have become a little bit of a systemd expert due to analysing SailfishOS, I never took the effort to track that down.
IMO, rather not, but ...
exactly that.
Well, sort of: But a I think the solution is not to have it enqueued too early.
No, I do not believe so.
Wrong conclusion: It is systemd and its automatisms make it complicated to comprehend! 😜 And AFAIR (look at the boot chart) the The systemd man-pages are basically well written (except for the never properly defined, but often used phrase "to pull in"), but one has to read the most important ones thoroughly to gather an overall understanding. The issue is to find "the most important ones", because that is nowhere documented and depends a bit on the use case. TL;DR: Solely use But please also take a look at the other units, they shall not be activated when P.S.: I will try to take a closer look at all these units some time, because at first sight a couple of things can and likely should be cleaned up. One issue with systemd is, that it often accepts superfluous and even contradicting statements silently, while trying to do the right thing (and even often succeeds with that), but sometimes such statements cause weird side effects. |
But that behaves transparently (i.e., like its original version), when it loads things not on a whitelist, correct? Sorry, I never looked those things up and have not yet thought about them. "installs or changes" (i.e., which of both) is the first thing we should know for sure!
Which "the library"?
I do not think that is viable. |
Implements Issue sailfishos-patches#39 sailfishos-patches#39
commit b23d86c478d648b3a6845f2734bd62499941d723 Author: Peter G <[email protected]> Date: Fri Dec 17 09:25:40 2021 +0100 fix non-absolute paths in service files commit 2b8799d918a65acda2bd3325be777f0c68b82c1d Author: Peter G <[email protected]> Date: Mon Oct 11 14:35:16 2021 +0200 fix and simplify Exec call commit c3b53021efa2aaa37f10349f56d826292960dd9c Author: Peter G <[email protected]> Date: Mon Oct 11 13:40:49 2021 +0200 Add special systemd services for system updates commit d851ae758862f0866461160b34c937224a020a73 Author: Peter G <[email protected]> Date: Mon Oct 11 13:40:02 2021 +0200 conflict with the services, check for existance of os-update file commit 007725c17c0776910be0bd456cff2a1c55f3503d Author: Peter G <[email protected]> Date: Mon Oct 11 12:36:33 2021 +0200 Revert "Conflict with os-update.target" This reverts commit 02013f0 which was the wrong solution. commit 239495612550527c1130eb16fa1db38fad0e08d8 Author: Peter G <[email protected]> Date: Sat Oct 2 16:48:23 2021 +0200 Conflict with os-update.target Implements Issue sailfishos-patches#39 sailfishos-patches#39
Implements Issue sailfishos-patches#39 sailfishos-patches#39
Implements Issue sailfishos-patches#39 sailfishos-patches#39
Add os-update.target to conflicts of pm service
The text was updated successfully, but these errors were encountered: