tools/deploy-qemu: use default temp dir location

Previously, the temporary directory was created in the script dir. It just
imo created unnecessary and confusing files in my git checkout. Let's just
use the default temporary directory because we don't really have special
needs for it.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-06-22 14:28:29 +02:00 committed by msehnout
parent 1eb51b7bab
commit 99d1d4e5d0

View file

@ -33,7 +33,7 @@ userdata = sys.argv[2]
qemu_extra_args = os.getenv("QEMU_EXTRA_ARGS")
qemu_extra_args = qemu_extra_args.split(' ') if qemu_extra_args is not None else []
with tempfile.TemporaryDirectory(prefix="qemu-tmp-", dir=script_dir) as workdir:
with tempfile.TemporaryDirectory(prefix="qemu-tmp-") as workdir:
os.mkdir(os.path.join(workdir, "cidata"))
if os.path.isdir(userdata):