From 7855e6d2be639c60fa9f609942f9af89c576826a Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 26 Oct 2012 16:27:00 +0000 Subject: Add and use sparse-gunzip in loopback-rootfs This reduces the space required from the full size of the compressed disk image, which meant that tests could not be run on systems where TMPDIR is a smallish tmpfs. --- scripts/sparse-gunzip | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/sparse-gunzip (limited to 'scripts') diff --git a/scripts/sparse-gunzip b/scripts/sparse-gunzip new file mode 100755 index 00000000..b6e1aa16 --- /dev/null +++ b/scripts/sparse-gunzip @@ -0,0 +1,6 @@ +#!/usr/bin/python +from morphlib.util import copyfileobj +import gzip, sys +infh = gzip.GzipFile(fileobj=sys.stdin) +copyfileobj(infh, sys.stdout) +infh.close() -- cgit v1.2.1