Always overwrite unowned strays under /usr/share/omarchy on update
The tree is wholly package-owned, but files can land there unowned (in-place extension work, script-written files), and pacman then aborts the entire upgrade on the file conflict — as happened when copy-url's service worker was renamed to background-2.js. The conflict check runs before any hooks or scriptlets, so the package itself can't recover; the update command has to allow the overwrite. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
f3878b341c
commit
844859a000
@@ -10,6 +10,11 @@ echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||
# Transition --overwrite: previous script-installed Omarchy wrote these paths
|
||||
# as unowned files; pacman would refuse the omarchy-settings upgrade on first
|
||||
# encounter. Drop each entry once the transition release is the baseline.
|
||||
#
|
||||
# The /usr/share/omarchy/* entry is permanent: that tree is wholly owned by
|
||||
# the omarchy packages, but files can land there unowned (in-place extension
|
||||
# work, script-written files), which would abort the whole upgrade. Packaged
|
||||
# content always wins there.
|
||||
sudo env OMARCHY_UPDATE_PACMAN=1 pacman -Syu --noconfirm \
|
||||
--overwrite '/etc/docker/daemon.json' \
|
||||
--overwrite '/etc/gnupg/dirmngr.conf' \
|
||||
@@ -35,4 +40,5 @@ sudo env OMARCHY_UPDATE_PACMAN=1 pacman -Syu --noconfirm \
|
||||
--overwrite '/usr/lib/systemd/system-sleep/unmount-fuse' \
|
||||
--overwrite '/usr/share/plymouth/themes/omarchy/*' \
|
||||
--overwrite '/usr/share/sddm/hyprland.lua' \
|
||||
--overwrite '/usr/share/sddm/themes/omarchy/*'
|
||||
--overwrite '/usr/share/sddm/themes/omarchy/*' \
|
||||
--overwrite '/usr/share/omarchy/*'
|
||||
|
||||
Reference in New Issue
Block a user