From 5ddd3c77b9421029c79efb2698db8d1ba3066fc9 Mon Sep 17 00:00:00 2001 From: Matt Bernhard Date: Fri, 19 Aug 2022 15:02:00 -0400 Subject: [PATCH] Fixing VxDev boot entry (#69) --- airootfs/usr/share/vx-img/flash-image.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/airootfs/usr/share/vx-img/flash-image.sh b/airootfs/usr/share/vx-img/flash-image.sh index dad829c..55a381a 100755 --- a/airootfs/usr/share/vx-img/flash-image.sh +++ b/airootfs/usr/share/vx-img/flash-image.sh @@ -438,6 +438,11 @@ if [[ $err == 1 ]]; then exit fi +vxdev=0 +if echo "$_toflash" | grep -iF "vxdev"; then + vxdev=1 +fi + echo "Flashing image" echo "$_path/$_toflash" echo "to disk" @@ -489,9 +494,8 @@ umount /mnt # fi #fi -# TODO make sure this works on every device - -if [ $_surface == 1 ]; then +# If we're on a surface or a VxDev device, we don't do ESI. +if [[ $_surface == 1 || $vxdev == 1 ]]; then echo "adding a boot entry for Debian shim" efibootmgr \ --create \