Skip to content

Commit

Permalink
Merge pull request #725 from balena-os/alexgg/esr-update
Browse files Browse the repository at this point in the history
layers/meta-balena: Update meta-balena to v5.0.12
  • Loading branch information
flowzone-app[bot] authored Mar 12, 2024
2 parents 0d9ed6d + 609fb8b commit f602136
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layers/meta-balena
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ if [ "$DURING_UPDATE" = "1" ]; then
# re-add the EFI entry for resinOS boot from internal media as some EFI firmwares are buggy and won't detect the old entry anymore
# first remove existing resinOS entries so we won't have duplicates
printf "[INFO] Re-add EFI boot entry for starting resinOS from internal media.\n"
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
if [ -z "$(ls -A /sys/firmware/efi/efivars)" ]; then
# efivars not bind-mounted by hostapp-update script
mount -t efivarfs efivarfs /sys/firmware/efi/efivars || true
fi
duplicates=`efibootmgr | grep resinOS |sed 's/Boot*//g' | sed 's/* resinOS//g'`
for i in $duplicates; do efibootmgr -B -b $i; done
efibootmgr -c -d $device -p 1 -L "resinOS" -l "\EFI\BOOT\bootx64.efi"
Expand Down

0 comments on commit f602136

Please sign in to comment.