Skip to content

aws-patch v1.10.3

Choose a tag to compare

@github-actions github-actions released this 28 Jul 19:53

Added

  • GRUB default boot entry mismatch detection (RHEL-family, where
    grubby is 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-patch had 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. Sets KERNEL_BOOT_DEFAULT_MISMATCH.
      Unverifiable systems (no grubby -- most Debian/Ubuntu installs)
      are left unflagged rather than guessed at by parsing grub.cfg,
      which would risk false positives blocking legitimate reboots.
    • lib/summary.sh: reports Reboot Required: GRUB DEFAULT MISMATCH
      distinctly from both a plain YES and a STALE ENTRY.
    • aws-patch.sh: handle_reboot() skips the no-op reboot (even with
      --reboot/--yes) and logs the exact grubby --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.sh still 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.deb

RHEL/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.rpm

One-line installer (any supported OS):

curl -fsSL https://raw.githubusercontent.com/yousafkhamza/aws-patch/main/install.sh | sudo bash

Verify downloads against SHA256SUMS in this release.