Skip to content

Commit

Permalink
Fixing VxDev boot entry (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
umbernhard authored Aug 19, 2022
1 parent f0195a4 commit 5ddd3c7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions airootfs/usr/share/vx-img/flash-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 5ddd3c7

Please sign in to comment.