Commit 7f893790 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Always use the direct backend in libguestfs

Make sure that the libguestfs appliance is always launched directly
using qemu. This can be done by exporting the environment variable
LIBGUESTFS_BACKEND=direct before importing the guestfs library.

This fixes #38
parent 8f3526c2
......@@ -21,8 +21,12 @@ from image_creator.util import FatalError, QemuNBD, get_command
from image_creator.gpt import GPTPartitionTable
from image_creator.os_type import os_cls
import re
import os
# Make sure libguestfs runs qemu directly to launch an appliance.
os.environ['LIBGUESTFS_BACKEND'] = 'direct'
import guestfs
import re
import hashlib
from sendfile import sendfile
import threading
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment