Blame SOURCES/pr-1481.patch

cd95a1
diff --git a/usr/share/rear/prep/default/310_include_uefi_tools.sh b/usr/share/rear/prep/default/330_include_uefi_tools.sh
cd95a1
similarity index 58%
cd95a1
rename from usr/share/rear/prep/default/310_include_uefi_tools.sh
cd95a1
rename to usr/share/rear/prep/default/330_include_uefi_tools.sh
cd95a1
index 61f973a..c910d36 100644
cd95a1
--- a/usr/share/rear/prep/default/310_include_uefi_tools.sh
cd95a1
+++ b/usr/share/rear/prep/default/330_include_uefi_tools.sh
cd95a1
@@ -1,14 +1,9 @@
cd95a1
-# When /boot/efi is mounted we copy the UEFI binaries we might need
cd95a1
+#
cd95a1
+# Copy UEFI binaries we might need into the ReaR recovery system.
cd95a1
+#
cd95a1
 
cd95a1
-# If noefi is set, we can ignore UEFI altogether
cd95a1
-if grep -qw 'noefi' /proc/cmdline; then
cd95a1
-    return
cd95a1
-fi
cd95a1
-
cd95a1
-# next step, is checking /boot/efi directory (we need it)
cd95a1
-if [[ ! -d /boot/efi ]]; then
cd95a1
-    return    # must be mounted
cd95a1
-fi
cd95a1
+# Include UEFI tools on demand only
cd95a1
+is_true $USING_UEFI_BOOTLOADER || return
cd95a1
 
cd95a1
 REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}"
cd95a1
 dosfsck