Compare commits

..

12 commits

Author SHA1 Message Date
Vitaly Kuznetsov
2116361af6 Update to v2.15.0.1
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
2025-11-26 10:30:26 +01:00
Vitaly Kuznetsov
1c8843aa5e Update to v2.14.0.1
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
2025-09-22 11:12:44 +02:00
Python Maint
1104f83c46 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:03:06 +02:00
Python Maint
4314e3d0b3 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:22:43 +02:00
Vitaly Kuznetsov
0d1539eba0 Merge #9 Turn off ResourceDisk.Format in the default config 2025-08-04 15:25:44 +00:00
Fedora Release Engineering
2d46c91024 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:39:58 +00:00
Jeremy Cline
a3c68d79b4
Turn off ResourceDisk.Format in the default config
WALinuxAgent can optionally format resource disks. However, other tools
can also handle this. Fedora Cloud ships with cloud-init, and enables
the disk_setup[0] module, which handles formatting the disks. For any
cases where users don't want this done via cloud-init, the
azure-vm-utils package will provide a small shell script and systemd
unit to handle it[1].

[0] https://docs.cloud-init.io/en/latest/reference/yaml_examples/disk_setup.html
[1] https://github.com/Azure/azure-vm-utils/pull/84

Signed-off-by: Jeremy Cline <jeremycline@linux.microsoft.com>
2025-07-21 12:41:30 -04:00
Python Maint
6664e733d8 Rebuilt for Python 3.14 2025-06-02 23:21:05 +02:00
Vitaly Kuznetsov
7055173168 Update to v2.13.1.1 (#2363841)
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
2025-05-05 16:50:00 +02:00
Fedora Release Engineering
6e0394d06e Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:23:35 +00:00
Vitaly Kuznetsov
8f18b5595d Update to v2.12.0.4
Note: legacycrypt is not in Fedora, add a patch to keep working with
'crypt_r' instead.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
2024-11-27 17:41:01 +01:00
Vitaly Kuznetsov
86fd51f637 Update to v2.11.1.12
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
2024-10-21 17:38:39 +02:00
4 changed files with 7 additions and 70 deletions

2
.gitignore vendored
View file

@ -29,3 +29,5 @@
/v2.12.0.2.tar.gz
/v2.12.0.4.tar.gz
/v2.13.1.1.tar.gz
/v2.14.0.1.tar.gz
/v2.15.0.1.tar.gz

View file

@ -1,67 +0,0 @@
From 376c6651f3f7c863c1aa5ac5e9536e974e6ab17c Mon Sep 17 00:00:00 2001
From: Vitaly Kuznetsov <vkuznets@redhat.com>
Date: Wed, 27 Nov 2024 14:53:15 +0100
Subject: [PATCH] Fedora: do not require legacycrypt
Content-Type: text/plain
'legacycrypt' is not yet present in Fedora, however, there's 'crypt_r'
stub emulating 'crypt'.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
azurelinuxagent/common/osutil/default.py | 10 +---------
requirements.txt | 1 -
setup.py | 5 ++---
3 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/azurelinuxagent/common/osutil/default.py b/azurelinuxagent/common/osutil/default.py
index 0a0fd0e1cdd7..3a1c647a8363 100644
--- a/azurelinuxagent/common/osutil/default.py
+++ b/azurelinuxagent/common/osutil/default.py
@@ -38,15 +38,7 @@ import time
from pwd import getpwall
from azurelinuxagent.common.exception import OSUtilError
-# 'crypt' was removed in Python 3.13; use legacycrypt instead
-if sys.version_info[0] == 3 and sys.version_info[1] >= 13 or sys.version_info[0] > 3:
- try:
- from legacycrypt import crypt
- except ImportError:
- def crypt(password, salt):
- raise OSUtilError("Please install the legacycrypt Python module to use this feature.")
-else:
- from crypt import crypt # pylint: disable=deprecated-module
+from crypt import crypt # pylint: disable=deprecated-module
from azurelinuxagent.common import conf
from azurelinuxagent.common import logger
diff --git a/requirements.txt b/requirements.txt
index ab6958a732ce..ee3b024d8fdc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,2 @@
distro; python_version >= '3.8'
pyasn1
-legacycrypt; python_version >= '3.13'
diff --git a/setup.py b/setup.py
index e83f598934c6..ea4c488b2897 100755
--- a/setup.py
+++ b/setup.py
@@ -319,12 +319,11 @@ class install(_install): # pylint: disable=C0103
# implementation may be broken prior to Python 3.8 where the functionality
# will be removed from Python 3.
# * In version 3.13 of Python, the crypt module was removed and legacycrypt is
-# required instead.
+# required instead. Fedora doesn't provide legacycrypt but has 'crypt_r' stub
+# instead.
requires = []
if sys.version_info[0] >= 3 and sys.version_info[1] >= 8:
requires.append('distro')
-if sys.version_info[0] >= 3 and sys.version_info[1] >= 13:
- requires.append('legacycrypt')
modules = [] # pylint: disable=invalid-name
--
2.47.0

View file

@ -1,7 +1,7 @@
%global dracut_modname 97walinuxagent
Name: WALinuxAgent
Version: 2.13.1.1
Version: 2.15.0.1
Release: %autorelease
Summary: The Microsoft Azure Linux Agent
@ -11,7 +11,6 @@ Source0: https://github.com/Azure/%{name}/archive/v%{version}.tar.gz
Source1: module-setup.sh
Patch1: 0001-waagent.service-set-ConditionVirtualization-microsof.patch
Patch2: 0001-Fedora-do-not-require-legacycrypt.patch
BuildArch: noarch
@ -94,6 +93,9 @@ install -m0755 -D --target-directory=%{buildroot}%{_prefix}/lib/dracut/modules.d
sed -i 's,#!/usr/bin/env python,#!/usr/bin/python3,' %{buildroot}%{_sbindir}/waagent
sed -i 's,/usr/bin/python ,/usr/bin/python3 ,' %{buildroot}%{_unitdir}/waagent.service
# Other commonly-used tools can handle formatting resource disks (cloud-init, azure-vm-utils) so
# by default, let's have WALinuxAgent not do that.
sed -i 's,ResourceDisk.Format=y,ResourceDisk.Format=n,' %{buildroot}%{_sysconfdir}/waagent.conf
%post

View file

@ -1 +1 @@
SHA512 (v2.13.1.1.tar.gz) = 3cb65495955c746bf112e794cbeb11f47ace72e4272c3cd16eb8d478c0b3b0323890b52c592b68775efafb8c6f267b3614e66f09d6a6dee066b603297676cd38
SHA512 (v2.15.0.1.tar.gz) = dc9398bd5a100f43f7921e0503ef288d632f0e494f2cc9a149e181634ef68da96bb743dda8378b93bbc538f82d43bf59571b7049918dbe2770495001ae80ab79