From 74846ea83b188f7d157409516b1afdb5ed19be07 Mon Sep 17 00:00:00 2001 From: Oleg Girko Date: Wed, 13 Nov 2019 15:30:56 +0000 Subject: [PATCH] Add support for nspawn VM type. This allows to utilise support for systemd-nspawn backend in build engine. Like LXC, systemd-nspawn creates isolated lightweight container. Signed-off-by: Oleg Girko --- osc/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/build.py b/osc/build.py index ac95cd86..38fa6e7b 100644 --- a/osc/build.py +++ b/osc/build.py @@ -1208,7 +1208,7 @@ def main(apiurl, opts, argv): buildargs.append('--kiwi-parameter') buildargs.append('--add-repopriority='+xml.get('priority')) - if vm_type == "xen" or vm_type == "kvm" or vm_type == "lxc": + if vm_type == "xen" or vm_type == "kvm" or vm_type == "lxc" or vm_type == "nspawn": print('Skipping verification of package signatures due to secure VM build') elif bi.pacsuffix == 'rpm': if opts.no_verify: @@ -1291,7 +1291,7 @@ def main(apiurl, opts, argv): vm_options += [ '--vm-telnet=' + vm_telnet ] if vm_memory: vm_options += [ '--memory=' + vm_memory ] - if vm_type != 'lxc': + if vm_type != 'lxc' and vm_type != 'nspawn': vm_options += [ '--vm-disk=' + my_build_device ] vm_options += [ '--vm-swap=' + my_build_swap ] vm_options += [ '--logfile=%s/.build.log' % build_root ]