* autopkgtest-xenlvm declares that it Depends on dmsetup.
* Discard stderr from our ought-to-be-unnecessary modprobe dm-snapshot.
+ * New `console' mode for userv service.
--
userv [-Ddistro=<distro> -Dnominum=<nominum>] \
[-Dssh_privkey=...|-Dssh_keyident_args=...] \
root adt-xenlvm-testbed <act>
-where <act> is either
+where <act> is one of
with
Starts adt-xenlvm-with-testbed, prints `y', waits for
eof on stdin, and then exits adt-xenlvm-with-testbed.
be put into an array of strings and passed to exec,
with the actual command to be run added as a final
argument (in sh syntax).
+ console
+ Runs xm console <name-of-guest>
+ (NB without a pty).
+
+Only guests for which
+ /var/lib/autopkgtest/xenlvm/<nominum>_<distro>
+exists and is a directory are allowed.
case "$1" in
with) run adt-xenlvm-with-testbed sh -c 'echo y && exec cat' ;;
pon0) run adt-xenlvm-on-testbed -- --print0-command ;;
+console) xm console "$nd" ;;
*) fail 'unknown mode'
esac