summaryrefslogtreecommitdiffstats
path: root/debian/qemu-system-i386.xen-wrapper
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2025-06-06 10:05:27 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2025-06-06 10:05:27 +0000
commit43904a02caeb311a505bbb5ffa431ea9859db5f4 (patch)
treecd841d75f639d9092243b0d02a3bb93cbdea5804 /debian/qemu-system-i386.xen-wrapper
parentAdding upstream version 1:7.2+dfsg. (diff)
downloadqemu-debian.tar.xz
qemu-debian.zip
Adding debian version 1:7.2+dfsg-7+deb12u13.debian/1%7.2+dfsg-7+deb12u13debian
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'debian/qemu-system-i386.xen-wrapper')
-rwxr-xr-xdebian/qemu-system-i386.xen-wrapper29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/qemu-system-i386.xen-wrapper b/debian/qemu-system-i386.xen-wrapper
new file mode 100755
index 00000000..c9484938
--- /dev/null
+++ b/debian/qemu-system-i386.xen-wrapper
@@ -0,0 +1,29 @@
+#! /bin/sh
+# This is a temporarily wrapper for qemu-system-i386 to redirect xen-specific
+# invocations of qemu-system-i386 into xen-specific package if installed.
+#
+xenredir=/usr/libexec/xen-qemu-system-i386
+exe=/usr/libexec/qemu-system-i386
+
+for opt in "$@"; do
+ case "$opt" in
+ -xen-* | --xen-*)
+ if [ -x $xenredir ]; then
+ exe=$xenredir
+ cat <<EOF >&2
+W: $0 binary is not compiled with xen support anymore
+W: redirecting the call to $exe
+W: please update your configs
+EOF
+ else
+ cat <<EOF >&2
+E: $0 binary is not compiled with xen support anymore
+E: please install qemu-system-xen package and update your configs
+EOF
+ fi
+ break
+ ;;
+ esac
+done
+
+exec "$exe" "$@"