aws-patch v1.9.0
Added
utils_filter_valid_kernel_linesinlib/utils.sh: a shared filter
that every pm module now runs candidate kernel package lines through
before picking a "latest" version withsort -V. This closes a gap
where a package that merely looks like a kernel version string could
win that comparison and be misreported as an installed or available
kernel:lib/apt.sh(pm_get_installed_kernels,
pm_get_latest_available_kernel): now excludes-dbgsym,-dbg,
and-unsignedpackages (e.g.linux-image-6.8.0-31-generic-dbgsym
ships no bootable kernel at all, but its name sorts as a valid, and
sometimes higher, version).lib/yum.shandlib/dnf.sh(pm_get_latest_available_kernel):
candidates are now anchored to the detected$ARCH, excluding
kernel.src(source RPM, not installable) and any other
architecture's build that a multilib-capableyum/dnf
configuration might otherwise surface.
- New test coverage in
tests/run_tests.shfor all of the above
(== invalid kernel candidate filtering ==).
Install
Debian/Ubuntu:
curl -fsSLO https://github.com/yousafkhamza/aws-patch/releases/download/v1.9.0/aws-patch_1.9.0_all.deb
sudo dpkg -i aws-patch_1.9.0_all.debRHEL/Amazon Linux/Rocky/AlmaLinux:
curl -fsSLO https://github.com/yousafkhamza/aws-patch/releases/download/v1.9.0/aws-patch-1.9.0-1.noarch.rpm
sudo rpm -i aws-patch-1.9.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.