Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install: allow removing symlinks even for units that are gone
If a symlink is leftover, still allow cleaning it up via 'disable'. This happens when a unit is stopped and removed, but not disabled, and a reload has already happened. At that point, cleaning up the old symlinks becomes impossible through the APIs, and needs to be done manually. Always allow cleaning up symlinks, if they exist, by only erroring out if there is an OOM. Follow-up for f31f10a (cherry picked from commit 5163c9b1e56293b1bb2803420613c5b374570892) (cherry picked from commit c26e56d08f30a2946dfa1d03781c63bfa9f56c1d) (cherry picked from commit 44c08e6) (cherry picked from commit 8c9fcb5) (cherry picked from commit e969f8b)
- Loading branch information