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

[Suggestion] Consider removing SSU's caches before / after upgrading #82

Open
Olf0 opened this issue Jan 31, 2023 · 2 comments
Open

[Suggestion] Consider removing SSU's caches before / after upgrading #82

Olf0 opened this issue Jan 31, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Olf0
Copy link
Owner

Olf0 commented Jan 31, 2023

DESCRIPTION

Consider performing
rm -r /var/cache/ssu/
ssu ur

But when? Likely both, before and after updating (on SFOS < 4.4.0), because users may start on any affected release and end on one, but never use sfos-upgrade before or after that, again.

ADDITIONAL INFORMATION

@Olf0 Olf0 added the enhancement New feature or request label Jan 31, 2023
@Olf0 Olf0 self-assigned this Jan 31, 2023
@Olf0
Copy link
Owner Author

Olf0 commented Feb 13, 2023

See also https://docs.sailfishos.org/Support/Help_Articles/Updating_Sailfish_OS/#if-it-keeps-failing

pkill  store-client
rm -rf /home/.pk-zypp-dist-upgrade-cache/*
rm ~/.cache/sailfish-osupdateservice/os-info

Better, also applicable to SailfishOS < 2.2.1 and suitable for root:

pkill -x store-client
rm -rf /home/.pk-zypp-dist-upgrade-cache/*
primuser="$(loginctl list-sessions | fgrep seat0 | tr -s ' ' | cut -d ' ' -f 4)"
rm -f "/home/${primuser}/.cache/sailfish-osupdateservice/os-info" "/home/${primuser}/.cache/store-client/os-info"

For references, see post_sfos-upgrade.

@Olf0
Copy link
Owner Author

Olf0 commented Sep 18, 2023

The original idea should rather be implemented as (see ssu commit 5bd8a09):

killall -q ssud 2> /dev/null || { sleep 1; killall -KILL -q ssud 2> /dev/null; } || true
# or `pkill -x ssud 2> /dev/null || { sleep 1; pkill -KILL -x ssud 2> /dev/null; } || true`

rm -rf /var/cache/ssu/*
ssu updaterepos

One may make this dependent on installed_version >= 4.4.0, but this does nor rally make a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant