From 274a72c77a2160e56b05a8c63ad57300eada4c10 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 23 Apr 2026 13:03:25 +0200 Subject: [PATCH] Fix the offer to restart when the linux kernel changes --- bin/omarchy-update-restart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-update-restart b/bin/omarchy-update-restart index ee03fbde..3a1bc4e2 100755 --- a/bin/omarchy-update-restart +++ b/bin/omarchy-update-restart @@ -2,7 +2,7 @@ echo -if [[ ! -d /usr/lib/modules/$(uname -r) ]]; then +if find /usr/lib/modules -maxdepth 2 -name vmlinuz -newermt "$(uptime -s)" 2>/dev/null | grep -q .; then gum confirm "Linux kernel has been updated. Reboot?" && omarchy-system-reboot elif [[ -f $HOME/.local/state/omarchy/reboot-required ]]; then gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot