Update install.sh

adding ability to provide a custom.iso with a custom automatic install file (answerfile / custom.xml)
This commit is contained in:
lly-c232733 2024-05-01 11:04:21 -04:00 committed by GitHub
parent cafb187d26
commit 07a628a53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -533,7 +533,11 @@ detectImage() {
local dir="$1"
if [ -n "$CUSTOM" ]; then
if [ -f "/run/assets/custom.xml" ]; then
DETECTED="custom"
else
DETECTED=""
fi
else
if [ -z "$DETECTED" ] && [[ "$EXTERNAL" != [Yy1]* ]]; then
DETECTED="$VERSION"