Skip to content

Commit

Permalink
Declare local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pcahyna committed May 5, 2021
1 parent d764184 commit 27de4cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/share/rear/finalize/Linux-i386/670_run_efibootmgr.sh 100644 → 100755
Expand Up @@ -8,6 +8,8 @@ is_true $USING_UEFI_BOOTLOADER || return 0
# (cf. finalize/Linux-i386/610_EFISTUB_run_efibootmgr.sh):
is_true $EFI_STUB && return

local esp_mountpoint esp_mountpoint_inside boot_efi_parts boot_efi_dev

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

local bootloader partition_block_device partition_number disk efipart

# EFI\fedora\shim.efi
bootloader=$( echo $UEFI_BOOTLOADER | cut -d"/" -f4- | sed -e 's;/;\\;g' )

Expand Down

0 comments on commit 27de4cd

Please sign in to comment.