Sync from SUSE:SLFO:Main azure-vm-utils revision 375469667e7b73ddbf5101589de52117

This commit is contained in:
Adrian Schröter 2025-02-20 09:21:52 +01:00
commit dfdd3bd620
4 changed files with 100 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
azure-vm-utils-v0.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

14
azure-vm-utils.changes Normal file
View File

@ -0,0 +1,14 @@
-------------------------------------------------------------------
Mon Jan 20 08:34:25 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Include in SLE-15 and SLFO (jsc#PED-11608)
-------------------------------------------------------------------
Thu Jan 16 12:23:20 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Add sed invocation to adjust path to bash interpretor on SLE-12
-------------------------------------------------------------------
Thu Oct 10 19:47:57 UTC 2024 - Chris Patterson <cpatterson@microsoft.com>
- Initial packaging (0.4.0).

60
azure-vm-utils.spec Normal file
View File

@ -0,0 +1,60 @@
#
# spec file for package azure-vm-utils
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: azure-vm-utils
Version: 0.4.0
Release: 0
Summary: Core utilities and configuration for Linux VMs on Azure
License: MIT
URL: https://github.com/Azure/%{name}
Source: %{url}/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires: cmake
BuildRequires: dracut
BuildRequires: gcc
BuildRequires: pkgconfig(libudev)
%description
This package provides a home for core utilities, udev rules and other
configuration to support Linux VMs on Azure.
%prep
%autosetup -n %{name}-%{version}
%if 0%{?suse_version} < 1500
sed -i 's/usr\/bin\/bash/bin\/bash/g' initramfs/dracut/modules.d/97azure-disk/module-setup.sh
%endif
%build
%cmake -DVERSION="%{version}-%{release}"
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%defattr(-,root,root,-)
%{_mandir}/man8/azure-nvme-id.8.gz
%dir %{_prefix}/lib/dracut/modules.d/97azure-disk
%{_prefix}/lib/dracut/modules.d/97azure-disk/module-setup.sh
%{_sbindir}/azure-nvme-id
%{_udevrulesdir}/80-azure-disk.rules
%changelog