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

Secret functionality: --reset-system #204

Open
nephros opened this issue Nov 14, 2021 · 1 comment
Open

Secret functionality: --reset-system #204

nephros opened this issue Nov 14, 2021 · 1 comment
Labels
backends daemon, systemd and dbus components debt fallout and other issues originating from the past documentation documentation, Wiki and related #question someone asked something

Comments

@nephros
Copy link
Contributor

nephros commented Nov 14, 2021

The daemon supports a "secret" switch --reset-system which from cursory lookover will

  • unapply all patches
  • find all RPMs which own files which were affected by patches
  • refresh all repositories
  • reinstalls those packages

https://github.com/sailfishos-patches/patchmanager/blob/master/src/bin/patchmanager-daemon/patchmanagerobject.cpp#L821

Qs:

  • Is this a useful function we want to keep around?
  • Does it work as it is supposed to?

It's a nifty thing if it works, but as it does unattended package management I regard it as highly dangerous. And I'm not sure it's still required in the world of PM3 with the preload method.

@nephros nephros added debt fallout and other issues originating from the past backends daemon, systemd and dbus components labels Nov 14, 2021
@nephros
Copy link
Contributor Author

nephros commented Nov 14, 2021

Additionally, now that we have 32/64 bit mangling, it might fail to find the correct paths, that would have to be looked into.

@Olf0 Olf0 added documentation documentation, Wiki and related #question someone asked something labels Jan 12, 2022
nephros pushed a commit to nephros/patchmanager that referenced this issue Jan 16, 2023
nephros pushed a commit to nephros/patchmanager that referenced this issue Jan 16, 2023
nephros pushed a commit to nephros/patchmanager that referenced this issue Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backends daemon, systemd and dbus components debt fallout and other issues originating from the past documentation documentation, Wiki and related #question someone asked something
Projects
None yet
Development

No branches or pull requests

2 participants