Skip to content

fix(uninstall): disable casaos-wsdd and casaos-local-storage-first too - #126

Merged
inkly merged 1 commit into
ReCasaOS:mainfrom
Vinz2168:fix/uninstall-all-units
Nov 6, 2026
Merged

inkly merged 1 commit into
ReCasaOS:mainfrom
Vinz2168:fix/uninstall-all-units

Conversation

@Vinz2168

@Vinz2168 Vinz2168 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

casaos-uninstall disables the units in its CASA_SERVICES list. casaos-wsdd.service and casaos-local-storage-first.service are enabled by their setup scripts but were missing from that list. After an uninstall, their symlinks in /etc/systemd/system/multi-user.target.wants/ stayed behind, pointing at unit files the manifest had removed. With the recasaos* aliases (ReCasaOS/CasaOS#95, ReCasaOS/CasaOS-LocalStorage#26), a second symlink per unit would stay behind as well.

On a box without one of them (an older release), systemctl stop or disable fails and the uninstaller only says so, as it does for any unit in the list.

About the systemctl reenable step from #84: it turned out not to be needed. The setup scripts already re-enable every unit on each update, and that adds a new alias; the details are in the CasaOS PR.

Tested: bash -n, and scripts/test-uninstall-modules.sh under dash ("all uninstall module checks passed").

Both are enabled by their setup scripts but were not in the
uninstaller's list, so their symlinks in /etc/systemd/system stayed
behind, pointing at removed unit files. With the recasaos* aliases a
second symlink per unit would stay behind as well.

@inkly inkly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch: both units are enabled by their setup scripts, so they belong in the list.

Nit, no change needed: they land after casaos.service, whose comment says it "must be the last one". devmon@devmon.service already sits after it, so this changes nothing in practice.

@inkly
inkly merged commit 506d6ba into ReCasaOS:main Nov 6, 2026
1 check passed
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.

2 participants