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

            A new commit has been pushed.

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

            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.

Related: #2492140
Related: #2491171

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

---
diff --git a/grub2.spec b/grub2.spec
index 57c9b9c..5ae6715 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -17,7 +17,7 @@
 Name:		grub2
 Epoch:		1
 Version:	2.12
-Release:	62%{?dist}
+Release:	63%{?dist}
 Summary:	Bootloader with support for Linux, Multiboot and more
 License:	GPL-3.0-or-later
 URL:		http://www.gnu.org/software/grub/
@@ -423,12 +423,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
@@ -613,6 +611,11 @@ fi
 %endif
 
 %changelog
+* Thu Jun 25 2026 Leo Sandoval <lsandova@redhat.com> - 2.12-63
+- spec efi postttrans: remove mountpoint check
+- Related: #2492140
+- Related: #2491171
+
 * Mon Jun 15 2026 Leo Sandoval <lsandova@redhat.com> - 2.12-62
 - 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 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25 20:00 [rpms/grub2] f44: 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