Fix centos element BASE_IMAGE_FILE
CentOS changed the names for cloud images, see[1] from devel@lists.centos.org. The grep in centos element in diskimage-builder fails to detect that the images with old names no longer exist, because there are leftover checksum files matching the old naming schema. Add a grep to remove anything matching the old naming. [1] https://lists.centos.org/hyperkitty/list/devel@lists.centos.org/thread/ECU4YO43IMZQLFGNJPNZWOAAOWDUIK7J/ Closes-Bug: #2168188 Signed-off-by: Harald Jensas <hjensas@redhat.com> Change-Id: I5f27bc58767da91bb9974180e567301c8ff38691
This commit is contained in:
1 parent
e172daf8d5
commit
73764519c2
1 file changed
+1
-1
@@ -42,7 +42,7 @@ else
|
||||
else
|
||||
dib_release_path=${DIB_RELEASE}
|
||||
fi
|
||||
BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-$(head -1 < <(curl -s https://cloud.centos.org/centos/${dib_release_path}/${ARCH}/images/ | grep -o "CentOS-.[^>]*${DIB_FLAVOR}-.[^>]*.qcow2" | sort -r))}
|
||||
BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-$(head -1 < <(curl -s https://cloud.centos.org/centos/${dib_release_path}/${ARCH}/images/ | grep -v "CentOS-.[^>]*-x86_64-" | grep -o "CentOS-.[^>]*${DIB_FLAVOR}-.[^>]*.qcow2" | sort -r))}
|
||||
BASE_IMAGE_TAR=$BASE_IMAGE_FILE.tgz
|
||||
IMAGE_LOCATION=$DIB_CLOUD_IMAGES/$BASE_IMAGE_FILE
|
||||
CACHED_IMAGE=$DIB_IMAGE_CACHE/$BASE_IMAGE_FILE
|
||||
|
||||
Reference in new issue
Block a user