From 74c8dfa9d46925d110b9cf4194a255e268e7969b Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Wed, 8 May 2024 12:30:37 -0400 Subject: [PATCH] Add the udev dependencies to the dracut module This fixes the symlinks created by the Azure storage rules, which depend on readlink and cut being present. Before this change the Fedora Cloud image would produce a symlink at /dev/disk/azure -> /dev/sda instead of /dev/disk/azure being a directory of symlinks to the device and any partitions it contains. [Vitaly Kuznetsov] Update the change for F39 branch. --- WALinuxAgent.spec | 5 ++++- module-setup.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WALinuxAgent.spec b/WALinuxAgent.spec index 9d9878a..e2c6a1a 100644 --- a/WALinuxAgent.spec +++ b/WALinuxAgent.spec @@ -3,7 +3,7 @@ Name: WALinuxAgent Version: 2.9.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Microsoft Azure Linux Agent License: Apache-2.0 @@ -121,6 +121,9 @@ install -m0755 -D -t %{buildroot}%{_prefix}/lib/dracut/modules.d/%{dracut_modnam %endif %changelog +* Wed May 08 2024 Jeremy Cline - 2.9.1.1-2 +- Add the udev dependencies to the dracut module + * Wed Oct 18 2023 Vitaly Kuznetsov - 2.9.1.1-1 - Update to 2.9.1.1 (#2232763) diff --git a/module-setup.sh b/module-setup.sh index 00d0eb7..9d29893 100644 --- a/module-setup.sh +++ b/module-setup.sh @@ -12,5 +12,6 @@ depends() { # called by dracut install() { + inst_multiple chmod cut readlink inst_rules 66-azure-storage.rules 99-azure-product-uuid.rules }