Add udev rules to initramfs (#1909287)
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
This commit is contained in:
parent
fdaed20564
commit
521b67bc85
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@
|
|||||||
/v2.2.48.1.tar.gz
|
/v2.2.48.1.tar.gz
|
||||||
/WALinuxAgent-2.2.52.tar.gz
|
/WALinuxAgent-2.2.52.tar.gz
|
||||||
/v2.2.52.tar.gz
|
/v2.2.52.tar.gz
|
||||||
|
/module-setup.sh
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
%global with_legacy 0
|
%global with_legacy 0
|
||||||
|
%global dracut_modname 97walinuxagent
|
||||||
|
|
||||||
Name: WALinuxAgent
|
Name: WALinuxAgent
|
||||||
Version: 2.2.52
|
Version: 2.2.52
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Microsoft Azure Linux Agent
|
Summary: The Microsoft Azure Linux Agent
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/Azure/%{name}
|
URL: https://github.com/Azure/%{name}
|
||||||
Source0: https://github.com/Azure/%{name}/archive/v%{version}.tar.gz
|
Source0: https://github.com/Azure/%{name}/archive/v%{version}.tar.gz
|
||||||
|
Source1: module-setup.sh
|
||||||
|
|
||||||
# Python3.9 fixes
|
# Python3.9 fixes
|
||||||
Patch0: 0001-update-array.tostring-and-json.loads-without-encodin.patch
|
Patch0: 0001-update-array.tostring-and-json.loads-without-encodin.patch
|
||||||
@ -88,6 +90,8 @@ sed -i 's,/usr/bin/python ,/usr/bin/python3 ,' %{buildroot}%{_unitdir}/waagent.s
|
|||||||
mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent-extn.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-extn
|
mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent-extn.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-extn
|
||||||
|
|
||||||
|
install -m0755 -D -t %{buildroot}%{_prefix}/lib/dracut/modules.d/%{dracut_modname}/ %{SOURCE1}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post waagent.service
|
%systemd_post waagent.service
|
||||||
|
|
||||||
@ -111,6 +115,7 @@ mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent-extn.logrotate %{buildroot}%{_
|
|||||||
|
|
||||||
%files udev
|
%files udev
|
||||||
%{_udevrulesdir}/*.rules
|
%{_udevrulesdir}/*.rules
|
||||||
|
%{_prefix}/lib/dracut/modules.d/%{dracut_modname}/*.sh
|
||||||
|
|
||||||
%if 0%{?with_legacy}
|
%if 0%{?with_legacy}
|
||||||
%files legacy
|
%files legacy
|
||||||
@ -118,6 +123,9 @@ mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent-extn.logrotate %{buildroot}%{_
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 15 2021 italy Kuznetsov <vkuznets@redhat.com> - 2.2.52-2
|
||||||
|
- Add udev rules to initramfs (#1909287)
|
||||||
|
|
||||||
* Wed Dec 09 2020 Vitaly Kuznetsov <vkuznets@redhat.com> - 2.2.52-1
|
* Wed Dec 09 2020 Vitaly Kuznetsov <vkuznets@redhat.com> - 2.2.52-1
|
||||||
- Update to 2.2.52 (#1849923)
|
- Update to 2.2.52 (#1849923)
|
||||||
- Add not yet upstream patches supporting Python3.9 changes
|
- Add not yet upstream patches supporting Python3.9 changes
|
||||||
|
1
sources
1
sources
@ -1 +1,2 @@
|
|||||||
SHA512 (v2.2.52.tar.gz) = b8d71cb4873b7e9cf92c755884bb104e5e37f171fbdae3d702b2b005a461b8f5447c9dcc80037ff0bfe9950ffbcb901e023e0bda918f481f5336c8ecbaecbbcc
|
SHA512 (v2.2.52.tar.gz) = b8d71cb4873b7e9cf92c755884bb104e5e37f171fbdae3d702b2b005a461b8f5447c9dcc80037ff0bfe9950ffbcb901e023e0bda918f481f5336c8ecbaecbbcc
|
||||||
|
SHA512 (module-setup.sh) = c05ed7395006c78bae1a7727b64c4b00a14e2c37e0d8a6ae7c05905a86d4ba638a2b98e4642ecd9a98db38298ff99f4877f900965a97f933b9aa034488835394
|
||||||
|
Loading…
Reference in New Issue
Block a user