omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

(dev channel) Failed update: migration 1789433473 USB authorization

Open Jon-5 opened this issue 1 month ago • 2 comments

https://github.com/omacom/omarchy/blob/2519fd9a97b78c7906330dbb8abdea49dd039983/migrations/1789433473.sh

~ ✗ omarchy setup security usb authorization --yes
USB authorization installation is incomplete: /usr/share/omarchy/install/helpers/usb-authorization-policy.sh

~ ✗ omarchy setup security usb authorization --help
Usage:
  omarchy setup security usb authorization [--boot] [--yes] [--review-existing]

Ask before new USB devices can access the system

Arguments:
  [--boot] [--yes] [--review-existing]

Binary:
  omarchy-setup-security-usb-authorization

~ ❯ omarchy setup security usb authorization --review-existing
/home/jon/omarchy/bin/omarchy-setup-security-usb-authorization: line 55: usbguard: command not found

I used yay to install [extra](https://archlinux.org/packages/extra/x86_64/usbguard)[/usbguard](https://archlinux.org/packages/extra/x86_64/usbguard) 1.1.4-11|

Re-running omarchy update still fails. Will try a reboot and retry.

Running migration (1789433473)
Enable approval for newly connected USB devices
USB authorization installation is incomplete: /usr/share/omarchy/install/helpers/usb-authorization-policy.sh

Something went wrong during the update!

Please review the output above carefully, correct the error, and retry the update.

If you need assistance, get help from the community at https://omarchy.org/discord

~ ✗ omarchy setup security usb authorization --review-existing
ERROR: IPC connect: service=usbguard: Connection refused

Jon-5 avatar Oct 09 '26 21:10 Jon-5

After installing usbguard and rebooting Updating remains stuck at migration 1789433473.sh

~ ❯ omarchy migrate --pending
1789433473.sh
1790344599.sh
1790608617.sh
1791542175.sh
~ ✗ omarchy setup security usb authorization --review-existing
ERROR: IPC connect: service=usbguard: Connection refused

~ ✗ omarchy setup security usb authorization
USB authorization installation is incomplete: /usr/share/omarchy/install/helpers/usb-authorization-policy.sh

The mentioned helper script isn't installed at the location in the error message, but it is present as called

~ ❯ eza /usr/share/omarchy/install/helpers/
as-root.sh  browser-policy.sh  logging.sh

~ ✗ command -V omarchy-setup-security-usb-authorization
omarchy-setup-security-usb-authorization is /home/jon/omarchy/bin/omarchy-setup-security-usb-authorization

... Long story short, there were scripts + systemd services that were called at locations where they were not located. I believe this is a correct summary of the steps needed to allow the update to complete without modify any of the current migration scripts.

Fix for 1789433473.sh aka

echo "Enable approval for newly connected USB devices"

omarchy-setup-security-usb-authorization --yes

copy scripts sudo cp ~/omarchy/bin/omarchy-usb-authorization-approve /usr/bin/ sudo cp ~/omarchy/install/helpers/usb-authorization.sh ~/omarchy/install/helpers/usb-authorization-policy.sh /usr/share/omarchy/install/helpers/ copy services sudo cp ~/omarchy/etc/systemd/system/omarchy-thunderbolt-authorization.service /etc/systemd/system/

Fix for 1790344599.sh

echo "Require approval for new Thunderbolt accessories"
omarchy-setup-security-thunderbolt-authorization --quiet

copy scripts sudo cp ~/omarchy/install/helpers/thunderbolt-policy.sh ~/omarchy/install/helpers/thunderbolt-setup.sh /usr/share/omarchy/helpers/ copy services cp ~/omarchy/etc/systemd/system/omarchy-thunderbolt-authorization.service ~/.config/systemd/user/

Jon-5 avatar Oct 09 '26 22:10 Jon-5

I will assume the fix @Sebo1411 works for anyone running omarchy update from now on and will close this thread.

Jon-5 avatar Oct 09 '26 22:10 Jon-5