Repository navigation
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryStops hibernation setup from forcing
No new actionable issues were found. The current migration also addresses the earlier cleanup and rebuild concerns.
|
|
Thanks Mario, deferring to the kernel's Two small things:
f=/etc/limine-entry-tool.d/rtc-alarm.conf
if [[ -f $f && $(sha256sum <"$f" | cut -d' ' -f1) == c9469cd9ba4c0f74f8ce6fe4afeac4414741a3536ce8693838047f15487fd1c8 ]]; then
sudo rm -f -- "$f" && sudo limine-mkinitcpio
fi
|
Thanks for reviewing. I added the second commit as a result of the robot review. If you think existing systems should stay on keeping the conffile I can just drop the second commit. If you would prefer to keep that cleanup path I'll adjust description and that second commit per your feedback. Let me know which way you prefer. |
|
I'd keep the cleanup. The point of the revert is to let the kernel's So my vote: keep |
|
OK. I've moved it to a standalone migrations shell script per your guidance. |
|
Thanks for moving it into a migration. Two small things in
[[ -f $rtc_alarm_drop_in ]] || exit 0
[[ $(sha256sum "$rtc_alarm_drop_in" | awk '{print $1}') == "$expected_hash" ]] || exit 0
echo "Removing stale ACPI RTC alarm drop-in ($rtc_alarm_drop_in)"
sudo rm -f -- "$rtc_alarm_drop_in"
if omarchy-cmd-present limine-mkinitcpio; then
sudo limine-mkinitcpio
omarchy-state set reboot-required
fi(The next kernel update's rebuild would also pick it up if that ever failed.) The hash check matches the old file exactly. I checked |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Reviewed and tested on a disposable Omarchy VM, with mem_sleep switched to The migration does what it says on that VM. It removes the stock drop-in, rebuilds the boot entries and sets reboot-required. It leaves an edited drop-in alone, and a second run does nothing. The hash matches the exact line the old setup wrote. I pushed one fix to your branch, 5ec2313. If
Nothing is left for you. It is waiting on the maintainer. |
|
@jandrusk anything else you need for this PR? |
|
I checked the recorded translation-check failure on 5ec2313. GitHub has expired the log and job details for that run, so its original cause could not be established. On a disposable Omarchy VM, the historical structural translation test fails with the same locale-generation permission error both on this branch merged with its previously recorded test base, 246f33a, and on that base alone. Current Codex High checked this, and Opus 5.5 High and muse-wonder via pi (high thinking) reviewed the evidence and agreed that no branch fix is established. Their independence is not guaranteed because reviewers can read the session's working notes. The branch also currently conflicts with |
|
Recommend: Hold — the maintainer needs affected-hardware results before deciding whether to remove the RTC override. The PR conflicts with Codex Medium, Opus 5.5 High and muse-wonder via pi, thinking high checked this. The boot command-line tests passed. The PR and its original base hit the same VS Code theme assertion in the CLI suite. The reviewers agreed on the hold and could read this session’s notes. |
This reverts commit ecf48a3. This is a misplaced change. The Linux kernel already sets policy for when RTC alarm should be used on the proper hardware. See use_acpi_alarm_quirks() in https://github.com/torvalds/linux/blob/v7.3-rc5/drivers/rtc/rtc-cmos.c#L823 Signed-off-by: Mario Limonciello <superm1@gmail.com>
The migration deleted the drop-in before rebuilding the boot entries, so a failed limine-mkinitcpio left nothing for the retry to find: the next run exited 0, was marked complete, and the boot entry kept rtc_cmos.use_acpi_alarm=1. Putting the stock drop-in back on failure keeps the migration pending until a rebuild succeeds, as the migrations guide requires. The header also said omarchy-hibernation-setup removes the file on a re-run; nothing does, which is why the migration exists. Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation After omacom#19667, systemd-boot installs store kernel command-line drop-ins in /etc/cmdline.d/rtc-alarm.conf rather than /etc/limine-entry-tool.d/rtc-alarm.conf, and boot rebuilds must go through omarchy-boot-rebuild so both managed loaders are updated and partial Limine failures are detected. Check both drop-in locations by exact stock content hash (preserving edited files), remove any matching stock drop-ins, rebuild via omarchy-boot-rebuild when an affected loader is managed, and restore removed stock drop-ins if the rebuild fails so the migration remains pending.
An interrupted rebuild can leave boot images using the RTC override after both stock drop-ins have been deleted. Record the pending rebuild before removing a managed loader's file and clear it once the rebuild succeeds. This also covers ordinary failures without writing the removed drop-ins back. Check stock files and the pending marker with sudo when their directories are inaccessible. Query the managed loaders with the same privileges used by the rebuild so a root-only boot state cannot hide a managed loader. Co-Authored-By: Codex High <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: muse-wonder via pi, thinking high <noreply@meta.com>
|
Recommend: Hold — a maintainer needs to approve the Actions runs and confirm suspend-then-hibernate on an s2idle machine that needed the original RTC override. Tests · Check translation structure I pushed On the affected test machine, record whether |
This reverts commit ecf48a3.
This is a misplaced change. The Linux kernel already sets policy for when RTC alarm should be used on the proper hardware.
See use_acpi_alarm_quirks() in https://github.com/torvalds/linux/blob/v7.3-rc5/drivers/rtc/rtc-cmos.c#L823
Actually setting it on hardware that it shouldn't be intended (such as older Intel or AMD systems) can cause unintended consequences. I suggest if you have hardware that isn't already supported by
use_acpi_alarm_quirks()for some reason that you submit a kernel change to fix it rather than impose this setting on everyone's kernel command line.