From ac3a5ca32e086b41ccebf726f99d0c536b1146be Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Feb 2026 18:01:39 +0100 Subject: [PATCH] Exit mildly so we can continue even if we can't do a setup --- bin/omarchy-hibernation-setup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-hibernation-setup b/bin/omarchy-hibernation-setup index 86af3dbf..1d4b0d1d 100755 --- a/bin/omarchy-hibernation-setup +++ b/bin/omarchy-hibernation-setup @@ -4,10 +4,14 @@ # adds a resume hook to mkinitcpio, and configures suspend-then-hibernate. if [[ ! -f /sys/power/image_size ]]; then - echo -e "\033[31mError: Hibernation is not supported on your system\033[0m" >&2 - exit 1 + echo -e "Hibernation is not supported on your system" >&2 + exit 0 fi +if ! command -v limine-mkinitcpio &>/dev/null; then + echo "Skipping hibernation setup (requires Limine bootloader)" + exit 0 +fi MKINITCPIO_CONF="/etc/mkinitcpio.conf.d/omarchy_resume.conf"