aws-patch v1.10.3
Added
- GRUB default boot entry mismatch detection (RHEL-family, where
grubbyis available). A kernel can be genuinely, correctly
installed -- real boot files present, not a stale database entry --
and still not be what a reboot would actually load, if GRUB's own
default boot entry was never updated to point at it (normally
automatic via the kernel package's own post-install scriptlets, but
can fail to complete after an interrupted transaction). Previously
aws-patchhad no way to detect this before rebooting; a--reboot
run would silently restart into the exact same kernel that was already
running, with nothing in the summary to reveal why.lib/kernel.sh: new_kernel_grub_default_matches()-- read-only
(grubby --default-kernel) comparison against the kernel version a
reboot is expected to load. SetsKERNEL_BOOT_DEFAULT_MISMATCH.
Unverifiable systems (nogrubby-- most Debian/Ubuntu installs)
are left unflagged rather than guessed at by parsinggrub.cfg,
which would risk false positives blocking legitimate reboots.lib/summary.sh: reportsReboot Required: GRUB DEFAULT MISMATCH
distinctly from both a plainYESand aSTALE ENTRY.aws-patch.sh:handle_reboot()skips the no-op reboot (even with
--reboot/--yes) and logs the exactgrubby --set-default
command needed, instead of rebooting into nothing changing.docs/troubleshooting.md: new "GRUB default not updated to the new
kernel" section with the full fix.- This is read-only inspection only --
lib/kernel.shstill never
writes to GRUB or changes the default boot entry itself; the file's
header comment was clarified to make that distinction explicit.
- New test coverage in
tests/run_tests.sh(== GRUB default boot entry mismatch ==): mismatch detected, correct-default not falsely
flagged, and grubby-unavailable never blocks a reboot.
Install
Debian/Ubuntu:
curl -fsSLO https://github.com/yousafkhamza/aws-patch/releases/download/v1.10.3/aws-patch_1.10.3_all.deb
sudo dpkg -i aws-patch_1.10.3_all.debRHEL/Amazon Linux/Rocky/AlmaLinux:
curl -fsSLO https://github.com/yousafkhamza/aws-patch/releases/download/v1.10.3/aws-patch-1.10.3-1.noarch.rpm
sudo rpm -i aws-patch-1.10.3-1.noarch.rpmOne-line installer (any supported OS):
curl -fsSL https://raw.githubusercontent.com/yousafkhamza/aws-patch/main/install.sh | sudo bashVerify downloads against SHA256SUMS in this release.