Remove cppcheck jobs
[lttng-ci.git] / lava / rootfs / vmdeboostrap / generate-root.py
index 1ab54e83e307ba52ff7f7d5d6a3ab81569297c5e..02e66d838275182c89113f81ffe724af23fc0a7d 100755 (executable)
 # 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 = [
@@ -37,7 +40,6 @@ packages = [
     'chrpath',
     'clang',
     'cloc',
-    'cppcheck',
     'curl',
     'elfutils',
     'flex',
@@ -57,14 +59,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',
@@ -79,7 +83,14 @@ packages = [
 def main():
     parser = argparse.ArgumentParser(description='Generate lava lttng rootfs')
     parser.add_argument("--arch", default='amd64')
-    parser.add_argument("--distribution", default='bionic')
+    # We are using xenial instead of bionic ++ since some syscall test depends
+    # on cat and the libc to use the open syscall. In recent libc openat is
+    # used. See these commit in lttng-tools that helps with the problem:
+    # c8e51d1559c48a12f18053997bbcff0c162691c4
+    # 192bd8fb712659b9204549f29d9a54dc2c57a9e
+    # These are only part of 2.11 and were not backported since they do not
+    # represent a *problem* per se.
+    parser.add_argument("--distribution", default='xenial')
     parser.add_argument("--mirror", default='http://archive.ubuntu.com/ubuntu')
     parser.add_argument(
         "--component", default='universe,multiverse,main,restricted')
@@ -105,7 +116,6 @@ def main():
         "--user={}".format(user),
         "--root-password={}".format(root_password),
         "--no-kernel",
-        "--enable-dhcp",
         "--verbose",
     ]
 
This page took 0.023357 seconds and 4 git commands to generate.