* 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>
20 lines
530 B
Bash
Executable File
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
|