Skip to content

aws-patch v1.10.0

Choose a tag to compare

@github-actions github-actions released this 28 Jul 18:30

Added

  • --kernel flag. By default, aws-patch now excludes the kernel
    package from a run's upgrade entirely: every other package still
    patches normally, but the kernel is left exactly as it was, so routine
    patching never forces a reboot decision. Pass --kernel to also
    install a newer kernel if one's available (pairs naturally with
    --reboot: sudo aws-patch --yes --kernel --reboot).
    • lib/apt.sh: new pm_full_upgrade_no_kernel() — holds the
      currently-installed linux-image-*/linux-headers-*/
      linux-modules-* packages via apt-mark hold for the duration of
      the upgrade and always unholds them after, success or failure.
    • lib/yum.sh / lib/dnf.sh: new pm_full_upgrade_no_kernel()
      runs the upgrade transaction with native --exclude='kernel*'.
    • aws-patch.sh: run_patch() now branches on --kernel; when
      excluded, a clear summary line and warning report that a kernel
      update was available but skipped, and how to include it next run.
    • lib/summary.sh: new Kernel Update: field, and the final warning
      now distinguishes "will install" from "excluded this run (pass
      --kernel to include)".
    • This never changes what happens to a kernel that's already
      installed -- no package is ever removed and GRUB is never touched,
      same guarantees as always.
  • New test coverage in tests/run_tests.sh for --kernel flag parsing/
    help documentation and pm_full_upgrade_no_kernel behavior on all
    three package managers (== pm_full_upgrade_no_kernel (--kernel gating) ==).

Install

Debian/Ubuntu:

curl -fsSLO https://github.com/yousafkhamza/aws-patch/releases/download/v1.10.0/aws-patch_1.10.0_all.deb
sudo dpkg -i aws-patch_1.10.0_all.deb

RHEL/Amazon Linux/Rocky/AlmaLinux:

curl -fsSLO https://github.com/yousafkhamza/aws-patch/releases/download/v1.10.0/aws-patch-1.10.0-1.noarch.rpm
sudo rpm -i aws-patch-1.10.0-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.