fix: Use USB media for Windows

This commit is contained in:
Kroese 2024-10-05 17:54:38 +02:00 committed by GitHub
parent fe806a82ad
commit e7bba97f8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -546,10 +546,14 @@ case "${MACHINE,,}" in
esac esac
if [ -z "${MEDIA_TYPE:-}" ]; then if [ -z "${MEDIA_TYPE:-}" ]; then
if [[ "${DISK_TYPE,,}" == "blk" ]]; then if [[ "${BOOT_MODE:-}" != "windows"* ]]; then
MEDIA_TYPE="$FALLBACK" if [[ "${DISK_TYPE,,}" == "blk" ]]; then
MEDIA_TYPE="$FALLBACK"
else
MEDIA_TYPE="$DISK_TYPE"
fi
else else
MEDIA_TYPE="$DISK_TYPE" MEDIA_TYPE="$FALLBACK"
fi fi
fi fi