mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-14 00:06:15 +01:00
Merge branch 'support-nspawn' of https://github.com/OlegGirko/osc
Support "osc build --vm-type=nspawn". Without this change build_root is changed to "build_root/.mount", which results in an invalid name for systemd-nspawn (see build-vm-nspawn in the obs-build codebase). Now, --vm-type=nspawn behaves the same as --vm-type=lxc wrt. option passing to the build script and package signature checking.
This commit is contained in:
commit
926c2eb422
@ -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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user