xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH v1.1 7/7] ts-debian-fixup: Install the overlays
@ 2015-09-29 15:24 Ian Jackson
  0 siblings, 0 replies; only message in thread
From: Ian Jackson @ 2015-09-29 15:24 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Ian Campbell

We want debootstrap-installed guests to get these overlays too.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v2: Use a tmpfile rather than a stashfile for the tarball.
---
 ts-debian-fixup |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ts-debian-fixup b/ts-debian-fixup
index 6d24587..75c93e3 100755
--- a/ts-debian-fixup
+++ b/ts-debian-fixup
@@ -19,6 +19,7 @@ use strict qw(vars);
 use DBI;
 use Osstest;
 use Osstest::TestSupport;
+use Osstest::Debian;
 
 tsreadconfig();
 
@@ -64,6 +65,17 @@ sub access () {
 END
 }
 
+sub overlay ($$) {
+    my ($srcdir, $tfilename) = @_;
+
+    my $fh = IO::File::new_tmpfile() or die $!;
+    contents_make_cpio($fh,'ustar',$srcdir);
+    seek $fh,0,0 or die "$!";
+    target_cmd_inputfh_root($ho, $fh, <<END);
+        tar -C $mountpoint -xf -
+END
+}
+
 our $extra;
 
 sub console () {
@@ -175,6 +187,7 @@ savecfg();
 ether();
 target_kernkind_check($gho);
 access();
+debian_overlays(\&overlay);
 console();
 filesystems();
 otherfixupcfg();
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-29 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 15:24 [OSSTEST PATCH v1.1 7/7] ts-debian-fixup: Install the overlays Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).