public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/grub2] rawhide: spec efi postttrans: remove mountpoint check
@ 2026-06-25 19:58 Leo Sandoval
  0 siblings, 0 replies; only message in thread
From: Leo Sandoval @ 2026-06-25 19:58 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/grub2
            Branch : rawhide
            Commit : f1a0e40dbd038980a073fca1c342a3f29ef9bbec
            Author : Leo Sandoval <lsandova@redhat.com>
            Date   : 2026-06-25T13:06:13-06:00
            Stats  : +10/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/grub2/c/f1a0e40dbd038980a073fca1c342a3f29ef9bbec?branch=rawhide

            Log:
            spec efi postttrans: remove mountpoint check

GRUB is not always installed on running systems, e.g wiki, lorax, so
mount point checking makes little sense on these environments. Remove
this check completely and copy .efi|.cfg files in any case.

Resolves: #2492140
Resolves: #2491171

Signed-off-by: Leo Sandoval <lsandova@redhat.com>

---
diff --git a/grub2.spec b/grub2.spec
index 8665d22..8fa47b5 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -17,7 +17,7 @@
 Name:		grub2
 Epoch:		1
 Version:	2.12
-Release:	65%{?dist}
+Release:	66%{?dist}
 Summary:	Bootloader with support for Linux, Multiboot and more
 License:	GPL-3.0-or-later
 URL:		http://www.gnu.org/software/grub/
@@ -436,12 +436,10 @@ fi
 
 # On image mode, bootupd takes care of installing bootloader updates to the ESP
 if [[ ! -e "/run/ostree-booted" ]]; then
-   # Check if /boot/efi is actually mounted before cp
-   if ! mountpoint -q ${ESP_PATH}; then
-       : # no ESP mounted, nothing to do
-   else
-     cp -a ${EFI_DIR}/. ${EFI_ESP_DIR} || :
-   fi
+   # Note that cp -R is not indicated because CC binaries are
+   # located in a EFI_DIR subfolder and we do not want to copy
+   # these into the ESP
+   cp -d --preserve=all ${EFI_DIR}/* ${EFI_ESP_DIR} || :
 fi
 
 if test -f ${EFI_DIR}/grubenv; then
@@ -627,6 +625,11 @@ fi
 %endif
 
 %changelog
+* Thu Jun 25 2026 Leo Sandoval <lsandova@redhat.com> - 2.12-66
+- spec efi postttrans: remove mountpoint check
+- Resolves: #2492140
+- Resolves: #2491171
+
 * Mon Jun 15 2026 Leo Sandoval <lsandova@redhat.com> - 2.12-65
 - spec: always exit with zero status on common posttrans scriptlet
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-25 19:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25 19:58 [rpms/grub2] rawhide: spec efi postttrans: remove mountpoint check Leo Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox