From 6e358d1cd44c6841a2bbe802ad5dc241bba0615b Mon Sep 17 00:00:00 2001 From: James Slagle Date: Thu, 14 May 2015 15:24:13 -0400 Subject: [PATCH] Use Centos 7 cloud image symlink We should make use of the CentOS-7-x86_64-GenericCloud.qcow2 symlink from http://cloud.centos.org/centos/7/images/ instead of having a hard coded cloud image. Specific cloud images can still be downloaded by overriding $DIB_RELEASE. More importantly, using the symlink will keep us automatically up to date with the latest CentOS 7 cloud image. The image in use by the hard coded value occassionally exhibits "No space left on device" errors after the cloud-init filesystem resize. More info about this issue is at: http://xfs.org/index.php/XFS_FAQ#Q:_Why_do_I_receive_No_space_left_on_device_after_xfs_growfs.3F The newer cloud image (with a newer kernel) does not exhibit this issue. Change-Id: I3e19f6269ceba937fcd630bab265d132bd525519 --- elements/centos7/root.d/10-centos7-cloud-image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/centos7/root.d/10-centos7-cloud-image b/elements/centos7/root.d/10-centos7-cloud-image index 041b3321..2a4bac83 100755 --- a/elements/centos7/root.d/10-centos7-cloud-image +++ b/elements/centos7/root.d/10-centos7-cloud-image @@ -23,7 +23,7 @@ if [ -n "$DIB_LOCAL_IMAGE" ]; then BASE_IMAGE_FILE=$(basename $DIB_LOCAL_IMAGE) BASE_IMAGE_TAR=$BASE_IMAGE_FILE.tgz else - DIB_RELEASE=${DIB_RELEASE:-GenericCloud-20140929_01} + DIB_RELEASE=${DIB_RELEASE:-GenericCloud} DIB_CLOUD_IMAGES=${DIB_CLOUD_IMAGES:-http://cloud.centos.org/centos/7/images} BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-CentOS-7-x86_64-$DIB_RELEASE.qcow2} BASE_IMAGE_TAR=$BASE_IMAGE_FILE.tgz