import from CS git
This commit is contained in:
parent
3def0f3503
commit
45316b0b5f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/virt-firmware-24.2.tar.gz
|
SOURCES/virt_firmware-24.11.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
33632fc870a65b25373ee6c8003f25a2d7bd73aa SOURCES/virt-firmware-24.2.tar.gz
|
07f06002c95710f77823908fcc32f2ae201f1610 SOURCES/virt_firmware-24.11.tar.gz
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
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,13 +1,14 @@
|
|||||||
%global pypi_version 24.2
|
%global pypi_version 24.11
|
||||||
|
|
||||||
Name: python-virt-firmware
|
Name: python-virt-firmware
|
||||||
Version: %{pypi_version}
|
Version: %{pypi_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Tools for virtual machine firmware volumes
|
Summary: Tools for virtual machine firmware volumes
|
||||||
|
|
||||||
License: GPLv2
|
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
|
||||||
@ -54,7 +55,7 @@ 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}
|
%autosetup -n virt_firmware-%{pypi_version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -69,9 +70,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}%{_libdir}/kernel/install.d
|
install -m 755 -d %{buildroot}%{_prefix}/lib/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}%{_libdir}/kernel/install.d
|
install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}%{_prefix}/lib/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
|
||||||
@ -109,9 +110,23 @@ install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}%{_libdir}/kernel/i
|
|||||||
|
|
||||||
%files -n uki-direct
|
%files -n uki-direct
|
||||||
%{_unitdir}/kernel-bootcfg-boot-successful.service
|
%{_unitdir}/kernel-bootcfg-boot-successful.service
|
||||||
%{_libdir}/kernel/install.d/99-uki-uefi-setup.install
|
%{_prefix}/lib/kernel/install.d/99-uki-uefi-setup.install
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 26 2025 Gerd Hoffmann <kraxel@redhat.com> - 24.11-2
|
||||||
|
- backport bootctl fix for 99-uki-uefi-setup.install
|
||||||
|
- Resolves: RHEL-84984
|
||||||
|
|
||||||
|
* Fri Nov 29 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.11-1
|
||||||
|
- update to version 24.11
|
||||||
|
- Resolves: RHEL-69507
|
||||||
|
|
||||||
|
* Thu Jul 11 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.7-1
|
||||||
|
- update to version 24.7
|
||||||
|
|
||||||
|
* Mon Apr 15 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.4-1
|
||||||
|
- update to version 24.4
|
||||||
|
|
||||||
* Fri Feb 16 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.2-1
|
* Fri Feb 16 2024 Gerd Hoffmann <kraxel@redhat.com> - 24.2-1
|
||||||
- update to version 24.2
|
- update to version 24.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user