chiark / gitweb /
* WIP userv service.
[autopkgtest.git] / xen / userv-target
1 #!/bin/bash
2 set -e
3 d="$USERV_U_distro"
4 fail () { printf >&2 "%s: %s\n" "$0" "$*"; exit 127; }
5
6 test "x$d" = "x${d#/*}" || fail 'distro may not contain slashes'
7 test -d /var/lib/autopkgtest/xenlvm/adt_"$d" || fail 'unknown distro'
8 exec adt-xenlvm-with-testbed --adt-distro="$d" sh -c 'echo y && exec cat'