qemu: Set QEMU data location correctly

While datadir must live under prefix, there is no requirement
that its name must necessarily be "share": a different,
arbitrary name could have been provided by the user.

Fixes: 3c876d2428
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Andrea Bolognani 2021-11-15 18:57:52 +01:00
parent 591cb9d0d5
commit b41c95af5b

View File

@ -80,7 +80,7 @@ qemuBuildFileList(GHashTable *files, const char *dir)
return 0;
}
#define QEMU_SYSTEM_LOCATION PREFIX "/share/qemu"
#define QEMU_SYSTEM_LOCATION DATADIR "/qemu"
#define QEMU_ETC_LOCATION SYSCONFDIR "/qemu"
int