gce-xfstests: include extra debian packages when building GCE image
PATCH v2 1/1 gce-xfstests: include extra debian packages when building GCE image
From: Eric Biggers <[email protected]>
Extra Debian packages in the kvm-xfstests/test-appliance/debs/ directory were getting added to kvm-xfstests appliances but not to gce-xfstests appliances. Make them get added to gce-xfstests appliances as well, and document this in gce-xfstests.md.
--- Documentation/gce-xfstests.md | 8 ++++++++ kvm-xfstests/test-appliance/gce-create-image | 3 +++ kvm-xfstests/test-appliance/gce-xfstests-bld.sh | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-)
Documentation/gce-xfstests.md +8 -0
@@ -313,6 +313,14 @@ create-image". This will create a new GCE image with a name such as "xfstests-201608132226" where 201608132226 indicates when the image was created (in this case, August 13, 2016 at 22:26). +As with kvm-xfstests, if you want to include any additional Debian +packages, or you want to override the default Jessie packages with +newer versions from jessie-backports, place them in the directory +kvm-xfstests/test-appliance/debs. See the [documentation for building +kvm-xfstests appliances](building-rootfs.md) for more information. +Note that gce-xfstests requires packages for the amd64 architecture; +packages for other architectures will not be installed. + This image will be created as part of an image family called xfstests. By default, when you start a test using gce-xfstests, the most recently created image in the xfstests image family will be used.
kvm-xfstests/test-appliance/gce-create-image +3 -0
@@ -104,6 +104,9 @@ then fi rm -f $t +# Copy extra debian packages to GS bucket +gsutil -m rsync -d -r debs/ gs://$GS_BUCKET/debs/ + gcloud compute --project "$GCE_PROJECT" -q instances delete "$BLD_INST" \ --zone "$GCE_ZONE" 2> /dev/null gcloud compute --project "$GCE_PROJECT" -q disks delete "$BLD_DISK" 2> /dev/null
kvm-xfstests/test-appliance/gce-xfstests-bld.sh +2 -1
@@ -119,7 +119,8 @@ systemctl enable [email protected] systemctl enable [email protected] systemctl enable [email protected] -if gsutil -m cp gs://$BUCKET/*.deb /run +# Install extra debian packages if any +if gsutil -m cp gs://$BUCKET/debs/*.deb /run then dpkg -i --ignore-depends=e2fsprogs /run/*.deb rm -f /run/*.deb
Signature · 1 line
2.11.0.483.g087da7b7c-goog
Quoted 8 lines · Eric Biggers
From: Eric Biggers <[email protected]>
Extra Debian packages in the kvm-xfstests/test-appliance/debs/ directory were getting added to kvm-xfstests appliances but not to gce-xfstests appliances. Make them get added to gce-xfstests appliances as well, and document this in gce-xfstests.md.
Signed-off-by Eric Biggers <[email protected]>
The functional bits were added upstream in commit e1ef1f57. I'll pull in your documentation change, thanks.
- Ted