Skip to content

Commit 27de4cd

Browse files
committed
Declare local variables
1 parent d764184 commit 27de4cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usr/share/rear/finalize/Linux-i386/670_run_efibootmgr.sh

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ is_true $USING_UEFI_BOOTLOADER || return 0
88
# (cf. finalize/Linux-i386/610_EFISTUB_run_efibootmgr.sh):
99
is_true $EFI_STUB && return
1010

11+
local esp_mountpoint esp_mountpoint_inside boot_efi_parts boot_efi_dev
12+
1113
# When UEFI_BOOTLOADER is not a regular file in the restored target system
1214
# (cf. how esp_mountpoint is set below) it means BIOS is used
1315
# (cf. rescue/default/850_save_sysfs_uefi_vars.sh)
@@ -57,6 +59,8 @@ if ! test "$boot_efi_parts" ; then
5759
LogPrint "Using fallback EFI boot partition(s) $boot_efi_parts (unable to find ESP $esp_mountpoint_inside in layout)"
5860
fi
5961

62+
local bootloader partition_block_device partition_number disk efipart
63+
6064
# EFI\fedora\shim.efi
6165
bootloader=$( echo $UEFI_BOOTLOADER | cut -d"/" -f4- | sed -e 's;/;\\;g' )
6266

0 commit comments

Comments
 (0)