Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
efi boot fix from oss-linbo ac03de3cb8d770f22624ca31098d0b592afe363e
Browse files Browse the repository at this point in the history
  • Loading branch information
fschuett committed Apr 9, 2017
1 parent 8fe2670 commit b3dbfea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildroot-external/board/rootfs_overlay/usr/bin/linbo_cmd
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ set_efibootorder(){
efibootmgr | grep ^Boot[0-9] > "$efiout"
local grubnumber="$(print_efi_bootnr " grub" "$efiout")"
local netnumbers="$(print_efi_bootnr " ipv4 " "$efiout")"
netnumbers="$netnumbers $(print_efi_bootnr "(IPV4)" "$efiout")"
netnumbers="$netnumbers $(print_efi_bootnr "efi network" "$efiout")"
netnumbers="$netnumbers $(print_efi_bootnr " pxev4 " "$efiout")"
local bootorder
Expand Down Expand Up @@ -995,13 +996,14 @@ mount_boot(){
mount --bind /cache/boot /boot || return 1
fi
if [ -n "$efipart" ]; then
mkdir -p /boot/efi
if ! mount | grep -q " /boot/efi "; then
mkdir -p /boot/efi
if ! mount "$efipart" /boot/efi; then
umount_boot
return 1
fi
fi
mkdir -p /boot/efi/EFI
fi
}

Expand Down

0 comments on commit b3dbfea

Please sign in to comment.