From 88303d81fdeb24fae0aa4fcef359f16b5beb9843 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 25 Aug 2025 12:07:08 +0200 Subject: [PATCH] New kernel detection is flaky, yank --- bin/omarchy-update-restart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/omarchy-update-restart b/bin/omarchy-update-restart index 4501212b..513cf80b 100755 --- a/bin/omarchy-update-restart +++ b/bin/omarchy-update-restart @@ -1,9 +1,6 @@ #!/bin/bash -# Check for kernel package updates since last boot -boot_time=$(date -d "$(uptime -s)" '+%Y-%m-%d %H:%M') -recent_kernel_updates=$(awk -v boot_time="$boot_time" '$0 >="["boot_time' /var/log/pacman.log | grep -E "\[ALPM\] (upgraded|installed) (linux|linux-zen|linux-lts|linux-hardened)\b" || true) -if [ -n "$recent_kernel_updates" ]; then +if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then gum confirm "Linux kernel has been updated. Reboot?" && omarchy-state clear re*-required && sudo reboot now elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then