From 1e206006cfcff03c5287f9633a978282ef66e66d Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 3 Dec 2018 14:11:33 -0500 Subject: [PATCH] Rootfs: remove intermediary tar file Signed-off-by: Jonathan Rajotte --- lava/rootfs/vmdeboostrap/generate-root.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lava/rootfs/vmdeboostrap/generate-root.py b/lava/rootfs/vmdeboostrap/generate-root.py index 1ab54e8..4f445f5 100755 --- a/lava/rootfs/vmdeboostrap/generate-root.py +++ b/lava/rootfs/vmdeboostrap/generate-root.py @@ -14,17 +14,20 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import subprocess import argparse -from datetime import datetime import gzip +import os import shutil +import subprocess + +from datetime import datetime def compress(filename): with open(filename, 'rb') as f_in: with gzip.open('{}.gz'.format(filename), 'wb') as f_out: shutil.copyfileobj(f_in, f_out) + os.remove(filename) packages = [ -- 2.34.1