Rootfs: add dependencies for hacking sessions
[lttng-ci.git] / lava / rootfs / vmdeboostrap / generate-root.py
index fbc7b849727d48c81b71af8c654e3489c6790819..9350b7c9ae2649478690dfca4cad53ff5557d3b3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Copyright (C) 2018 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
 # This program is free software: you can redistribute it and/or modify
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-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 = [
@@ -57,14 +60,16 @@ packages = [
     'libtool',
     'libxml2',
     'libxml2-dev',
+    'netcat-traditional',
+    'openssh-server',
     'psmisc',
     'python-virtualenv',
     'python3',
-    'python3-setuptools',
     'python3-dev',
     'python3-numpy',
     'python3-pandas',
     'python3-pip',
+    'python3-setuptools',
     'python3-sphinx',
     'stress',
     'swig',
This page took 0.023913 seconds and 4 git commands to generate.