Unverified Commit 54198a09 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Detect filename variations (#364)

parent cf72680c
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -11,6 +11,27 @@ fi
BASE="boot.img"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="boot.iso"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="Boot.img"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="Boot.iso"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="boot.IMG"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="boot.ISO"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="BOOT.IMG"
[ -f "$STORAGE/$BASE" ] && return 0

BASE="BOOT.ISO"
[ -f "$STORAGE/$BASE" ] && return 0

if [ -z "$BOOT" ]; then
  error "No boot disk specified, set BOOT= to the URL of an ISO file." && exit 64
fi