Fix the offer to restart when the linux kernel changes

This commit is contained in:
David Heinemeier Hansson
2026-04-23 13:03:26 +02:00
parent 09f93b5a92
commit 274a72c77a
+1 -1
View File
@@ -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