* [PATCH v2] gce-xfstests: include extra debian packages when building GCE image
@ 2017-01-30 21:36 Eric Biggers
2017-01-30 23:01 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2017-01-30 21:36 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: fstests, Eric Biggers
From: Eric Biggers <ebiggers@google.com>
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 <ebiggers@google.com>
---
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(-)
diff --git a/Documentation/gce-xfstests.md b/Documentation/gce-xfstests.md
index becc23d..8985cef 100644
--- a/Documentation/gce-xfstests.md
+++ b/Documentation/gce-xfstests.md
@@ -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.
diff --git a/kvm-xfstests/test-appliance/gce-create-image b/kvm-xfstests/test-appliance/gce-create-image
index a901476..c0dfabe 100755
--- a/kvm-xfstests/test-appliance/gce-create-image
+++ b/kvm-xfstests/test-appliance/gce-create-image
@@ -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
diff --git a/kvm-xfstests/test-appliance/gce-xfstests-bld.sh b/kvm-xfstests/test-appliance/gce-xfstests-bld.sh
index c10645f..563e818 100644
--- a/kvm-xfstests/test-appliance/gce-xfstests-bld.sh
+++ b/kvm-xfstests/test-appliance/gce-xfstests-bld.sh
@@ -119,7 +119,8 @@ systemctl enable telnet-getty@ttyS1.service
systemctl enable telnet-getty@ttyS2.service
systemctl enable telnet-getty@ttyS3.service
-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
--
2.11.0.483.g087da7b7c-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] gce-xfstests: include extra debian packages when building GCE image
2017-01-30 21:36 [PATCH v2] gce-xfstests: include extra debian packages when building GCE image Eric Biggers
@ 2017-01-30 23:01 ` Theodore Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2017-01-30 23:01 UTC (permalink / raw)
To: Eric Biggers; +Cc: fstests, Eric Biggers
On Mon, Jan 30, 2017 at 01:36:19PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> 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 <ebiggers@google.com>
The functional bits were added upstream in commit e1ef1f57. I'll pull
in your documentation change, thanks.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-30 23:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 21:36 [PATCH v2] gce-xfstests: include extra debian packages when building GCE image Eric Biggers
2017-01-30 23:01 ` Theodore Ts'o
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.