Omarchy Update Issue: Persistent Reboot Prompt
When running omarchy-update through the menu, I'm repeatedly prompted to reboot my machine with the message "New Linux kernel requires reboot. Ready?" even after multiple reboots.
System Information
- Current kernel version: 6.16.0-arch2-1
pacman -Q linux
linux 6.16.arch2-1
hostnamectl
Operating System: Arch Linux
Kernel: Linux 6.16.0-arch2…
Architecture: x86-64
Hardware Vendor: Lenovo
grep -i "linux " /var/log/pacman.log | grep upgraded
[2025-08-14T08:03:34-0500] [ALPM] upgraded linux (6.15.9.arch1-1 -> 6.16.arch2-1)
Steps to Reproduce
- Run
omarchy updatefrom the menu - Enter sudo password when prompted
- System shows "New Linux kernel requires reboot. Ready?" message
- Reboot the system
- Run
omarchy updateagain - Notice the same reboot prompt appears
Expected Behavior
After rebooting, the system should recognize that I'm already running the latest kernel and not prompt for another reboot.
Additional Context
This issue began occurring after the kernel upgrade on August 14th. I have rebooted multiple times, but the prompt persists despite the fact that I'm already running the latest kernel version (6.16.0-arch2-1).
The issue is here: https://github.com/basecamp/omarchy/blob/3d283eac180933e1381508a3ab775c91cda1affc/bin/omarchy-update-restart#L3
uname -r | sed 's/-arch/\.arch/' returns 6.16.0.arch2-1
where
pacman -Q linux | awk '{print $2}' now returns 6.16.arch2-1 without an extra .0
This will likely happen for any .0 version of kernel without tweaking regex to "backfill" / "ignore" missing .0.
-- P.S. Can't take a stub at PR right now - travelling.
I've been experiencing this issue too and did some debugging with CC that might help identify the root cause.
The bug might be in the timestamp comparison logic in omarchy-update-restart. The script compares log timestamps as strings:
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 ...)
Pacman appears to use ISO format [2025-08-21T08:46:01-0500] for the log, while boot_time is formatted as 2025-08-21 09:00. If awk does the string comparison $0 >= "["boot_time, it's comparing ASCII values where "T" (84) > space (32), the timestamp like "08:46" may incorrectly appear "greater than" "09:00".
In my case, the kernel updated at: 2025-08-21T08:46:01 and then the system booted at: 2025-08-21 09:00:36
I think the script incorrectly thinks the update happened after boot.
A potential fix might be to compare epoch timestamps instead of strings, or to normalize both timestamp formats before comparison. Hope this helps narrow down the issue!
Should be fixed in the next release with https://github.com/basecamp/omarchy/pull/585