1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

M #-: Ensure qemu-nbd fork

This commit is contained in:
Ruben S. Montero 2020-04-29 19:33:17 +02:00
parent 71f5723be6
commit 9dbd7af691
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -31,7 +31,7 @@ class Qcow2Mapper < Mapper
dsrc = one_vm.disk_source(disk)
File.chmod(0o664, dsrc) if File.symlink?(one_vm.sysds_path)
map = "#{COMMANDS[:nbd]} -c #{device} #{dsrc}"
map = "#{COMMANDS[:nbd]} --fork -c #{device} #{dsrc}"
rc, _out, err = Command.execute(map, true)
unless rc.zero?