1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

save log file of vm builds

This commit is contained in:
Ludwig Nussel 2010-04-29 14:27:42 +02:00
parent af467cea2d
commit 70d772e942

View File

@ -719,6 +719,7 @@ def main(opts, argv):
if vm_type != 'lxc':
vm_options += ' --vm-disk=' + my_build_device
vm_options += ' --vm-swap=' + my_build_swap
vm_options += ' --logfile=%s/.build.log' % build_root
if vm_type == 'kvm':
if os.access(build_root, os.W_OK) and os.access('/dev/kvm', os.W_OK):
# so let's hope there's also an fstab entry