aws-patch v1.10.0
Added
--kernelflag. By default,aws-patchnow 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--kernelto also
install a newer kernel if one's available (pairs naturally with
--reboot:sudo aws-patch --yes --kernel --reboot).lib/apt.sh: newpm_full_upgrade_no_kernel()— holds the
currently-installedlinux-image-*/linux-headers-*/
linux-modules-*packages viaapt-mark holdfor the duration of
the upgrade and always unholds them after, success or failure.lib/yum.sh/lib/dnf.sh: newpm_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: newKernel 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.shfor--kernelflag parsing/
help documentation andpm_full_upgrade_no_kernelbehavior 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.debRHEL/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.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.