commit 04cfb8314074f3a3439b810ffac4e2865e3939ae Author: Noah Meyerhans <noahm@debian.org> Date: Fri Dec 23 14:18:08 2022 -0800 Release 2.0.1-1 commit d9bf4406638f047aa024d7682c7ab70889740711 Author: Noah Meyerhans <noahm@debian.org> Date: Fri Dec 23 14:17:18 2022 -0800 Drop patch debian/patches/fixup-python-path commit bd0c5b4dc106577e9c35a831ce93f19fe3ad7165 Merge: bf9d16f 7442a4d Author: Noah Meyerhans <noahm@debian.org> Date: Fri Dec 23 14:16:26 2022 -0800 Merge tag 'v2.0.1' commit 7442a4dac603f8259eeb5956d8f49d36abfd4624 Merge: 73252a6 03acfbd Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Mon Feb 14 09:36:14 2022 -0800 Merge branch 'main-udev-bugfix' into main https://github.com/aws/amazon-ec2-utils/pull/24 commit 03acfbdd04e557c2655d9f57b46f03647f4edf86 Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Fri Feb 11 10:02:31 2022 -0800 rpm: update spec for 2.0.1-1 release commit 0be3d3b5e020eaac436e4f62140a6fca6ad0003c Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Fri Feb 11 10:00:00 2022 -0800 bugfix: don't lose block-device-mapping symlinks for nvme devices Fixes https://github.com/aws/amazon-ec2-utils/issues/22 Symlinks need to be created on both add and change udev events, otherwise they're lost any time a change event is opened, e.g. when a device is open in read/write mode, e.g. when creating or mounting a filesystem. commit 39fbd85d4eb78ed1ee3635e20621929b538d4c9c Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Fri Feb 11 10:08:27 2022 -0800 ci: install findutils as a dependency We use xargs from the findutils package, which is no longer installed by default in the AL 2022 container images. commit 73252a68d82c5b84c135c09f32a264881dbc4aaf Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Wed Jan 19 19:58:17 2022 -0800 Update branch details in CONTRIBUTING.md commit c94027b2503db8f01c11f4393983efa69d761e8e Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Wed Jan 19 19:50:23 2022 -0800 Stop creating the /opt/aws/bin/ec2-metadata symlink This was for compatibility purposes with ancient Amazon Linux releases. commit 53229d2d1669f5d1bfab7a0620477b907efd3368 Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 20:56:36 2021 +0000 Correct an invalid variable substitution in udev rules 53-ec2-read-ahead-kb.rules uses awk, with variable references beginning with a '$' character. Udev uses this same character when referencing its own device attributes, so the awk variable reference needs to be escaped. Resolves issues such as the following: /usr/lib/udev/rules.d/53-ec2-read-ahead-kb.rules:9 Invalid value "/bin/awk -v bdi=$kernel 'BEGIN{ret=1} {if ($4 == bdi) {ret=0}} END{exit ret}' /proc/fs/nfsfs/volumes" for PROGRAM (char 44: invalid substitution type), ignoring, but please fix it. Verified that the escaped version performs as expected with udevadm test, as well as with device-mapper device attachements: [ec2-user@ip-10-0-0-232 ~]$ sed 's|/proc/fs/nfsfs/volumes|/home/ec2-user/volumes|' /usr/lib/udev/rules.d/53-ec2-read-ahead-kb.rules | sudo tee /etc/udev/rules.d/53-ec2-read-ahead-kb.rules SUBSYSTEM=="bdi", ACTION=="add", PROGRAM="/bin/awk -v bdi=$kernel 'BEGIN{ret=1} {if ($$4 == bdi) {ret=0}} END{exit ret}' /home/ec2-user/volumes", ATTR{read_ahead_kb}="15360" (reverse-i-search)`ech': ^Cho 1234 > foo [ec2-user@ip-10-0-0-232 ~]$ echo 0 1 2 7:0 > /home/ec2-user/volumes [ec2-user@ip-10-0-0-232 ~]$ sudo udevadm test -a add /class/bdi/7\:0 This program is for debugging only, it does not run any program ... 7:0: /etc/udev/rules.d/53-ec2-read-ahead-kb.rules:9 Running PROGRAM '/bin/awk -v bdi=7:0 'BEGIN{ret=1} {if ($4 == bdi) {ret=0}} END{exit ret}' /home/ec2-user/volumes' 7:0: Starting '/bin/awk -v bdi=7:0 'BEGIN{ret=1} {if ($4 == bdi) {ret=0}} END{exit ret}' /home/ec2-user/volumes' Successfully forked off '(spawn)' as PID 4357. 7:0: Process '/bin/awk -v bdi=7:0 'BEGIN{ret=1} {if ($4 == bdi) {ret=0}} END{exit ret}' /home/ec2-user/volumes' succeeded. 7:0: /etc/udev/rules.d/53-ec2-read-ahead-kb.rules:9 ATTR '/sys/devices/virtual/bdi/7:0/read_ahead_kb' writing '15360' DEVPATH=/devices/virtual/bdi/7:0 ACTION=add SUBSYSTEM=bdi USEC_INITIALIZED=4521757767 Unload module index Unloaded link configuration context. [ec2-user@ip-10-0-0-232 ~]$ cat /sys/class/bdi/7\:0/read_ahead_kb 15360 commit 5193f7dbf57f2e6e1af2248a8223961a7aa81fbc Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 20:15:34 2021 +0000 Drop ec2udev-vcpu and related udev rules commit b62a60e3291361ec79123cec328afd4e3e1d2087 Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 19:59:38 2021 +0000 Install ec2nvme-nsid in %{_sbindir} rather than /usr/lib/udev /usr/lib/udev is not referenced in the FHS or in the Fedora packaging guidelines, and there are no RPM macros that reference it. It's best to treat it as an internal directory managed by the systemd related packages, and install our external tools to standard system directories. Moving the ec2nvme-nsid executable to /usr/sbin is also consistent with the location of the rest of the executables provided by this package. commit f56568a29941b655a710a5c0b4fe86870ec95e95 Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 18:02:09 2021 +0000 rpm: Update relationship to ec2-utils and ec2-metadata Add version constraints on ec2-metadata relationship Add Obsoletes/Provides for ec2-utils In the early days of Amazon Linux, ec2-utils was renamed from ec2-metadata. To facilitate the package rename, Obsoletes and Provides fields were added to the ec2-utils spec file. However, they did not provide version constraints, which results in an rpmlint error. This change adds a version constraint based on the last release of the ec2-metadata package. commit fadc0086b271b7f8470742a1398a801f6c23eb15 Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 01:07:48 2021 +0000 Install binaries to %{_sbindir} rather than /sbin commit e770ba7bb45ce7af5f8dd356c6935c776cc4e4ba Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 00:42:45 2021 +0000 Install udev rules to %{_udevrulesdir} Udev rules should be installed to the system-wide default udev location normally in order to allow the administrator to override them by creating new files in /etc (rather than editing package-provided files). commit de2232e0d236acbfb49af6d0bfb50c32188feb73 Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 00:28:02 2021 +0000 Correct the changelog date for 1.3-3 commit c3fbe42004462b3519e6123c13fdb4bdfc73592c Author: Noah Meyerhans <nmeyerha@amzn.com> Date: Thu Jan 20 08:56:05 2022 -0800 Run Amazon Linux CI checks in AL 2022 commit b568c9494d4f5429ac14ddd7863da6735280f001 Author: Noah Meyerhans <nmeyerha@amazon.com> Date: Thu Nov 11 00:00:09 2021 +0000 Update python deps to python3
Among the 1 debian patch available in version 2.0.1-1 of the package, we noticed the following issues: