Drop the removed migration verifier's enable link on upgrade
The engine enabled omarchy-mac-migrate-verify.service with systemctl; with the unit gone the link would dangle. Also correct which omarchy-mac pull requests every omarchy-mac-pkgs pin includes (#544 has not merged).
This commit is contained in:
1 parent
c8f2257abb
commit
0de65be033
2 files changed
+11
-7
No files matched your search
@@ -35,9 +35,13 @@ post_install() {
|
||||
}
|
||||
|
||||
_omarchy_mac_boot_drop_legacy_wants() {
|
||||
# The replaced omarchy-first-boot left its preset-enabled link behind.
|
||||
local link=/etc/systemd/system/multi-user.target.wants/omarchy-first-boot.service
|
||||
[[ -L $link && ! -e $link ]] && rm -f "$link"
|
||||
# The replaced omarchy-first-boot left its preset-enabled link behind, and
|
||||
# the migration engine this package no longer ships enabled its verifier.
|
||||
local unit link
|
||||
for unit in omarchy-first-boot.service omarchy-mac-migrate-verify.service; do
|
||||
link=/etc/systemd/system/multi-user.target.wants/$unit
|
||||
[[ -L $link && ! -e $link ]] && rm -f "$link"
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user