Files
omarchycn/bin/omarchy-refresh-limine
T
f8c235a5e4 Read /boot as root when looking for the Omarchy UKI (#6653)
* Find the Omarchy UKI as root when setting up direct boot

/boot is mounted with dmask=0077 on encrypted installs, so the
unprivileged find returned nothing and direct boot always reported that
no UKI was present.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Check for the legacy UKI as root when refreshing limine

The unprivileged file tests were always false on encrypted installs, so
the stale <machine-id>_linux.efi was never cleaned up.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-09 13:17:28 +02:00

20 lines
530 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Overwrite the user config for the Limine bootloader and rebuild it.
# omarchy:requires-sudo=true
legacy_uki="/boot/EFI/Linux/$(cat /etc/machine-id)_linux.efi"
if sudo test -f /boot/EFI/Linux/omarchy_linux.efi && sudo test -f "$legacy_uki"; then
echo "Cleanup extra UKI"
sudo rm -f "$legacy_uki"
fi
echo "Resetting limine config"
sudo mv /boot/limine.conf /boot/limine.conf.bak
sudo cp "$OMARCHY_PATH/default/limine/limine.conf" /boot/limine.conf
sudo limine-update
sudo limine-snapper-sync