feat: Detect filename variations (#364)
This commit is contained in:
parent
cf72680c07
commit
54198a093d
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue