Skip to content

Feat/schedule reboot#281

Merged
NavidSassan merged 14 commits into
mainfrom
feat/schedule-reboot
Jul 7, 2026
Merged

Feat/schedule reboot#281
NavidSassan merged 14 commits into
mainfrom
feat/schedule-reboot

Conversation

@NavidSassan

Copy link
Copy Markdown
Member

No description provided.

…of mailx

The role shelled out to the mailx 'mail' command, which fails on hosts that no longer install mailx (e.g. system_update.yml after dropping the at/mailx deps). Switch to sendmail (provided by postfix), drop the mailx-only platform vars files, and use set -o pipefail + bash for the pipe.
…ext-run notice

notify-and-schedule, update-and-reboot and security-update log progress to the journal. The security lane now checks for pending updates first and exits quietly when there are none, so it no longer mails daily 'nothing to do'. notify-and-schedule reports the actual next run of update-and-reboot.timer in the subject and body; the config-file-stub mail elides over-long paths in the subject; and send_msg takes subject/body as arguments instead of reading globals.
…nd clearer reboot mail

do-reboot waits schedule_reboot__reboot_grace_period seconds (default 60) after notifying before rebooting, so the mail can leave the queue; the reboot subject becomes 'Automatic reboot due to <reasons>'; and send_msg takes subject/body as arguments.
NavidSassan and others added 4 commits June 12, 2026 15:48
…rrorlist errors

Rocky's mirrorlist service intermittently returns an empty list ("No URLs in mirrorlist") during upstream degraded windows, which made the daily update, update-check and security lanes fail and mail an error even though the next run succeeded.

Refresh repo metadata via a retried makecache (3 attempts) before the actual transaction in all three lanes. Only the metadata refresh is retried, so the update transaction and any post-update code still run exactly once.

Molecule: the system_update verify now runs the non-mutating check lane and asserts it completes cleanly, covering the new wrapper on the happy path.
@NavidSassan NavidSassan merged commit 08ec1d2 into main Jul 7, 2026
11 checks passed
@NavidSassan NavidSassan deleted the feat/schedule-reboot branch July 7, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant