Blame SOURCES/pr-1481.patch

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