diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2025-06-06 10:05:27 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2025-06-06 10:05:27 +0000 |
commit | 43904a02caeb311a505bbb5ffa431ea9859db5f4 (patch) | |
tree | cd841d75f639d9092243b0d02a3bb93cbdea5804 /debian/qemu-system-i386.xen-wrapper | |
parent | Adding upstream version 1:7.2+dfsg. (diff) | |
download | qemu-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-x | debian/qemu-system-i386.xen-wrapper | 29 |
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" "$@" |