Compare commits
No commits in common. "c10" and "c9-beta" have entirely different histories.
@ -1,32 +0,0 @@
|
|||||||
From ca385db4f74a4d542455b9d40c91c8448c7be90c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
||||||
Date: Thu, 20 Mar 2025 09:04:32 +0100
|
|
||||||
Subject: [PATCH] systemd: skip /boot/efi in case $BOOT_ROOT looks like the ESP
|
|
||||||
|
|
||||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
||||||
---
|
|
||||||
systemd/99-uki-uefi-setup.install | 8 +++++++-
|
|
||||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/systemd/99-uki-uefi-setup.install b/systemd/99-uki-uefi-setup.install
|
|
||||||
index 26c8c018683b..773491198433 100755
|
|
||||||
--- a/systemd/99-uki-uefi-setup.install
|
|
||||||
+++ b/systemd/99-uki-uefi-setup.install
|
|
||||||
@@ -16,7 +16,13 @@ ENTRY_TOKEN="$KERNEL_INSTALL_ENTRY_TOKEN"
|
|
||||||
BOOT_ROOT="$KERNEL_INSTALL_BOOT_ROOT"
|
|
||||||
|
|
||||||
UKI_DIR_BOOT="$BOOT_ROOT/EFI/Linux"
|
|
||||||
-UKI_DIR_ESP="`bootctl -p`/EFI/Linux"
|
|
||||||
+if test -d "$BOOT_ROOT/EFI/BOOT"; then
|
|
||||||
+ # looks like $BOOT_ROOT points to the ESP
|
|
||||||
+ UKI_DIR_ESP="$UKI_DIR_BOOT"
|
|
||||||
+else
|
|
||||||
+ # must find ESP mount point
|
|
||||||
+ UKI_DIR_ESP="`bootctl -p`/EFI/Linux"
|
|
||||||
+fi
|
|
||||||
|
|
||||||
LOADER_INFO="$(kernel-bootcfg --print-loader)"
|
|
||||||
case "$LOADER_INFO" in
|
|
||||||
--
|
|
||||||
2.49.0
|
|
||||||
|
|
@ -1,30 +1,19 @@
|
|||||||
## START: Set by rpmautospec
|
|
||||||
## (rpmautospec version 0.6.5)
|
|
||||||
## RPMAUTOSPEC: autorelease, autochangelog
|
|
||||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
||||||
release_number = 2;
|
|
||||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
||||||
print(release_number + base_release_number - 1);
|
|
||||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
||||||
## END: Set by rpmautospec
|
|
||||||
|
|
||||||
%global pypi_version 24.11
|
%global pypi_version 24.11
|
||||||
|
|
||||||
Name: python-virt-firmware
|
Name: python-virt-firmware
|
||||||
Version: %{pypi_version}
|
Version: %{pypi_version}
|
||||||
Release: %autorelease
|
Release: 1%{?dist}
|
||||||
Summary: Tools for virtual machine firmware volumes
|
Summary: Tools for virtual machine firmware volumes
|
||||||
|
|
||||||
License: GPL-2.0-only
|
License: GPLv2
|
||||||
URL: https://pypi.org/project/virt-firmware/
|
URL: https://pypi.org/project/virt-firmware/
|
||||||
Source0: virt_firmware-%{pypi_version}.tar.gz
|
Source0: virt_firmware-%{pypi_version}.tar.gz
|
||||||
Patch1: 0001-systemd-skip-boot-efi-in-case-BOOT_ROOT-looks-like-t.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3dist(cryptography)
|
BuildRequires: python3dist(cryptography)
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python3dist(setuptools)
|
||||||
BuildRequires: make help2man
|
BuildRequires: make
|
||||||
BuildRequires: systemd systemd-rpm-macros
|
BuildRequires: systemd systemd-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -37,8 +26,6 @@ to enroll secure boot certificates.
|
|||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-virt-firmware}
|
%{?python_provide:%python_provide python3-virt-firmware}
|
||||||
Provides: virt-firmware
|
Provides: virt-firmware
|
||||||
Conflicts: python3-virt-firmware-peutils < 23.9
|
|
||||||
Obsoletes: python3-virt-firmware-peutils < 23.9
|
|
||||||
Requires: python3dist(cryptography)
|
Requires: python3dist(cryptography)
|
||||||
Requires: python3dist(setuptools)
|
Requires: python3dist(setuptools)
|
||||||
Requires: python3dist(pefile)
|
Requires: python3dist(pefile)
|
||||||
@ -60,13 +47,14 @@ test cases
|
|||||||
Provides: ukidirect
|
Provides: ukidirect
|
||||||
Summary: %{summary} - manage UKI kernels.
|
Summary: %{summary} - manage UKI kernels.
|
||||||
Requires: python3-virt-firmware
|
Requires: python3-virt-firmware
|
||||||
Conflicts: systemd < 254
|
Conflicts: systemd < 252-21
|
||||||
|
Obsoletes: rhel-cvm-update-tool
|
||||||
%description -n uki-direct
|
%description -n uki-direct
|
||||||
kernel-install plugin and systemd unit to manage automatic
|
kernel-install plugin and systemd unit to manage automatic
|
||||||
UKI (unified kernel image) updates.
|
UKI (unified kernel image) updates.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n virt_firmware-%{pypi_version} -p1
|
%autosetup -n virt_firmware-%{pypi_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -81,9 +69,9 @@ mkdir -p %{buildroot}%{_datadir}/%{name}
|
|||||||
cp -ar tests %{buildroot}%{_datadir}/%{name}
|
cp -ar tests %{buildroot}%{_datadir}/%{name}
|
||||||
# uki-direct
|
# uki-direct
|
||||||
install -m 755 -d %{buildroot}%{_unitdir}
|
install -m 755 -d %{buildroot}%{_unitdir}
|
||||||
install -m 755 -d %{buildroot}%{_prefix}/lib/kernel/install.d
|
install -m 755 -d %{buildroot}%{_libdir}/kernel/install.d
|
||||||
install -m 644 systemd/kernel-bootcfg-boot-successful.service %{buildroot}%{_unitdir}
|
install -m 644 systemd/kernel-bootcfg-boot-successful.service %{buildroot}%{_unitdir}
|
||||||
install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}%{_prefix}/lib/kernel/install.d
|
install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}%{_libdir}/kernel/install.d
|
||||||
|
|
||||||
%post -n uki-direct
|
%post -n uki-direct
|
||||||
%systemd_post kernel-bootcfg-boot-successful.service
|
%systemd_post kernel-bootcfg-boot-successful.service
|
||||||
@ -121,139 +109,71 @@ install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}%{_prefix}/lib/kern
|
|||||||
|
|
||||||
%files -n uki-direct
|
%files -n uki-direct
|
||||||
%{_unitdir}/kernel-bootcfg-boot-successful.service
|
%{_unitdir}/kernel-bootcfg-boot-successful.service
|
||||||
%{_prefix}/lib/kernel/install.d/99-uki-uefi-setup.install
|
%{_libdir}/kernel/install.d/99-uki-uefi-setup.install
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
## START: Generated by rpmautospec
|
|
||||||
* Wed Mar 26 2025 Gerd Hoffmann <kraxel@redhat.com> - 24.11-2
|
|
||||||
- backport bootctl fix for 99-uki-uefi-setup.install
|
|
||||||
|
|
||||||
* Fri Nov 29 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.11-1
|
* Fri Nov 29 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.11-1
|
||||||
- update to version 24.11
|
- update to version 24.11
|
||||||
|
- Resolves: RHEL-69507
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 24.7-2
|
|
||||||
- Bump release for October 2024 mass rebuild:
|
|
||||||
|
|
||||||
* Thu Jul 11 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.7-1
|
* Thu Jul 11 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.7-1
|
||||||
- update to version 24.7
|
- update to version 24.7
|
||||||
|
|
||||||
* Thu Jul 11 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.4-3
|
|
||||||
- sync gating with rhel-9
|
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 24.4-2
|
|
||||||
- Bump release for June 2024 mass rebuild
|
|
||||||
|
|
||||||
* Mon Apr 15 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.4-1
|
* Mon Apr 15 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.4-1
|
||||||
- update to version 24.4
|
- update to version 24.4
|
||||||
|
|
||||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 24.1.1-4
|
* Fri Feb 16 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.2-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- update to version 24.2
|
||||||
|
|
||||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 24.1.1-3
|
* Thu Jan 11 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.1.1-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 10 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.1.1-2
|
|
||||||
- add pe test script
|
|
||||||
|
|
||||||
* Wed Jan 10 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.1.1-1
|
|
||||||
- update to version 24.1.1
|
- update to version 24.1.1
|
||||||
|
|
||||||
* Tue Jan 09 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.1-2
|
|
||||||
- add pe-inspect manpage to file list
|
|
||||||
|
|
||||||
* Tue Jan 09 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.1-1
|
* Tue Jan 09 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.1-1
|
||||||
- update to version 24.1
|
- update to version 24.1
|
||||||
|
- Resolves: RHEL-21090
|
||||||
|
|
||||||
* Thu Nov 30 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.11-1
|
* Wed Jan 03 2024 Gerd Hoffmann <kraxel@redhat.com> - 23.11-3
|
||||||
|
- add "obsoletes: rhel-cvm-update-tool" to uki-direct
|
||||||
|
|
||||||
|
* Tue Jan 02 2024 Gerd Hoffmann <kraxel@redhat.com> - 23.11-2
|
||||||
|
- add uki-direct subpackage
|
||||||
|
- Resolves: RHEL-19383
|
||||||
|
|
||||||
|
* Wed Dec 13 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.11-1
|
||||||
- update to version 23.11
|
- update to version 23.11
|
||||||
|
|
||||||
* Tue Oct 10 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.10-4
|
* Thu Oct 12 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.10-2
|
||||||
- clarify uki-direct dependency on systemd >= 254
|
- drop uki-direct subpackage for now (wait for systemd update)
|
||||||
|
|
||||||
* Tue Oct 10 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.10-3
|
* Wed Oct 11 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.10-1
|
||||||
- add pe-inspect to filelist
|
|
||||||
|
|
||||||
* Tue Oct 10 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.10-2
|
|
||||||
- Revert "Add fixes for systemd unit + kernel-install plugin (from master
|
|
||||||
branch)."
|
|
||||||
|
|
||||||
* Tue Oct 10 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.10-1
|
|
||||||
- update to version 23.10
|
- update to version 23.10
|
||||||
|
|
||||||
* Tue Sep 19 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.9-6
|
|
||||||
- Add fixes for systemd unit + kernel-install plugin (from master branch).
|
|
||||||
|
|
||||||
* Tue Sep 19 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.9-5
|
|
||||||
- add Conflicts line for obsoleted subpackage
|
|
||||||
|
|
||||||
* Tue Sep 19 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.9-4
|
|
||||||
- use %%_libdir
|
|
||||||
|
|
||||||
* Mon Sep 18 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.9-3
|
|
||||||
- add uki-direct subpackage
|
- add uki-direct subpackage
|
||||||
|
|
||||||
* Mon Sep 18 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.9-2
|
* Tue Jun 27 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.6-2
|
||||||
- drop -peutils subpackage
|
- drop -peutils subpackage
|
||||||
|
|
||||||
* Mon Sep 18 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.9-1
|
* Tue Jun 20 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.6-1
|
||||||
- update to version 23.9
|
|
||||||
|
|
||||||
* Fri Sep 15 2023 Daniel P. Berrangé <berrange@redhat.com> - 23.6-4
|
|
||||||
- Convert to SPDX format
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 23.6-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 26 2023 Python Maint <python-maint@redhat.com> - 23.6-2
|
|
||||||
- Rebuilt for Python 3.12
|
|
||||||
|
|
||||||
* Mon Jun 19 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.6-1
|
|
||||||
- update to version 23.6
|
- update to version 23.6
|
||||||
|
- resolves: rhbz#2216102
|
||||||
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 23.5-2
|
|
||||||
- Rebuilt for Python 3.12
|
|
||||||
|
|
||||||
* Thu May 04 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.5-1
|
* Thu May 04 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.5-1
|
||||||
- update to version 23.5
|
- update to version 23.5
|
||||||
|
- resolves: rhbz#2193089
|
||||||
|
|
||||||
* Fri Apr 14 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.4-1
|
* Fri Apr 14 2023 Gerd Hoffmann <kraxel@redhat.com> - 23.4-1
|
||||||
- update to version 23.4
|
- update to version 23.4
|
||||||
|
- resolves: rhbz#2186770
|
||||||
|
- resolves: rhbz#2143566
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-2
|
* Tue Nov 15 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.6-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- add tests.yml
|
||||||
|
|
||||||
* Mon Jan 16 2023 Gerd Hoffmann <kraxel@redhat.com> - 1.8-1
|
* Mon Nov 14 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.6-1
|
||||||
- update to version 1.8
|
|
||||||
|
|
||||||
* Fri Dec 02 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.7-1
|
|
||||||
- update to version 1.7
|
|
||||||
|
|
||||||
* Thu Nov 10 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.6-2
|
|
||||||
- add conflict declaration
|
|
||||||
|
|
||||||
* Thu Nov 10 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.6-1
|
|
||||||
- update to version 1.6
|
- update to version 1.6
|
||||||
- split peutils to subpackage
|
- drop peutils
|
||||||
|
|
||||||
* Wed Oct 05 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.5-1
|
|
||||||
- update to version 1.5
|
|
||||||
|
|
||||||
* Wed Oct 05 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-5
|
|
||||||
- turn on gating
|
|
||||||
|
|
||||||
* Wed Oct 05 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-4
|
|
||||||
- more test dependency tweaks
|
|
||||||
|
|
||||||
* Wed Oct 05 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-3
|
|
||||||
- tweak test dependencies
|
|
||||||
|
|
||||||
* Wed Oct 05 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-2
|
|
||||||
- add tests
|
|
||||||
|
|
||||||
* Tue Sep 27 2022 Gerd Hoffmann <kraxel@redhat.com> - 1.4-1
|
|
||||||
- update to version 1.4
|
|
||||||
- add man-pages
|
- add man-pages
|
||||||
- add tests sub-package
|
- add tests sub-package
|
||||||
|
- resolves: rhbz#2142608
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
@ -275,5 +195,3 @@ install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}%{_prefix}/lib/kern
|
|||||||
|
|
||||||
* Mon Apr 11 2022 Gerd Hoffmann <kraxel@redhat.com> - 0.95-1
|
* Mon Apr 11 2022 Gerd Hoffmann <kraxel@redhat.com> - 0.95-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|
||||||
## END: Generated by rpmautospec
|
|
||||||
|
Loading…
Reference in New Issue
Block a user