Allow to override Fedora subrelease regexp
This gives more flexability into defenition and won't result in users to be blocked until new DIB release will happen with fixed regexp. Change-Id: I5b6d15dc7cbc6f41b600c5b33f5030df5bdfa793
This commit is contained in:
parent
7cd5268d15
commit
01a4ab7724
@ -53,7 +53,8 @@ else
|
||||
esac
|
||||
# We have curl write headers to stderr so that we can debug fedora
|
||||
# mirror locations that don't have valid subreleases in their paths.
|
||||
SUBRELEASE=$(head -1 < <(curl -Lis -D /dev/stderr $DIB_CLOUD_IMAGES/ | grep -o -P '(?<=Fedora-Cloud-Base-'${DIB_RELEASE}'-).*?(?=.'${ARCH}'.qcow2)' | sort -r))
|
||||
SUBRELEASE_REGEXP=${SUBRELEASE_REGEXP:-'(?<=Fedora-Cloud-Base-'${DIB_RELEASE}'-).*?(?=.'${ARCH}'.qcow2)'}
|
||||
SUBRELEASE=$(head -1 < <(curl -Lis -D /dev/stderr $DIB_CLOUD_IMAGES/ | grep -o -P $SUBRELEASE_REGEXP | sort -r))
|
||||
BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-Fedora-Cloud-Base-$DIB_RELEASE-$SUBRELEASE.$ARCH.qcow2}
|
||||
BASE_IMAGE_TAR=Fedora-Cloud-Base-$DIB_RELEASE-$SUBRELEASE.$ARCH.tgz
|
||||
IMAGE_LOCATION=$DIB_CLOUD_IMAGES/$BASE_IMAGE_FILE
|
||||
|
Loading…
Reference in New Issue
Block a user