Skip to content

Commit

Permalink
Fix the bootloader path in the efibootmgr command.
Browse files Browse the repository at this point in the history
Only one backslash is needed.
  • Loading branch information
Arakmar committed Jun 28, 2013
1 parent 392db8d commit 7bab3ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/share/rear/finalize/Linux-i386/23_run_efibootmgr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ BootEfiDev="$( mount | grep "boot/efi" | awk '{print $1}' )"
Dev=$( get_device_name $BootEfiDev ) # /dev/sda1
Disk=$( echo ${Dev} | sed -e 's/[0-9]//g' ) # /dev/sda
ParNr=$( echo ${Dev} | sed -e 's/.*\([0-9]\).*/\1/' ) # 1 (must anyway be a low nr <9)
BootLoader=$( echo $UEFI_BOOTLOADER | cut -d"/" -f4- | sed -e 's;/;\\\\;g' ) # EFI\\fedora\\shim.efi
Log efibootmgr --create --gpt --disk ${Disk} --part ${ParNr} --write-signature --label \"${OS_VENDOR} ${OS_VERSION}\" --loader \"\\\\${BootLoader}\"
efibootmgr --create --gpt --disk ${Disk} --part ${ParNr} --write-signature --label "${OS_VENDOR} ${OS_VERSION}" --loader "\\\\${BootLoader}"
BootLoader=$( echo $UEFI_BOOTLOADER | cut -d"/" -f4- | sed -e 's;/;\\;g' ) # EFI\fedora\shim.efi
Log efibootmgr --create --gpt --disk ${Disk} --part ${ParNr} --write-signature --label \"${OS_VENDOR} ${OS_VERSION}\" --loader \"\\${BootLoader}\"
efibootmgr --create --gpt --disk ${Disk} --part ${ParNr} --write-signature --label "${OS_VENDOR} ${OS_VERSION}" --loader "\\${BootLoader}"
LogIfError "Problem occured with creating an efibootmgr entry"

# ok, boot loader has been set-up - tell rear we are done using following var.
Expand Down

0 comments on commit 7bab3ab

Please sign in to comment.