sharedir_lnfrom=/usr/share/$p/$x \
sharedir=$(topdir)/debian/$p-$x/usr/share/$p/$x \
etcdir=$(topdir)/debian/$p-$x/etc cfg_suffix=''
- cd debian/$p-$x/etc/userv/rules.d && \
- mv -f adt-xenlvm-testbed adt-xenlvm-testbed:dist
+ cd debian/$p-$x/etc/userv/services.d && \
+ mv -f adt-xenlvm-testbed:dist adt-xenlvm-testbed
set -e; for f in $p $p-$x; do \
cat CREDITS debian/copyright.suffix \
--- /dev/null
+Virtualisation service for use via userv
+----------------------------------------
+
+adt-virt-xenlvm supports use of Xen virtual machines and LVM COW via
+the userv `security boundary tool'. By default the files
+corresponding to this setup are installed but not enabled.
+
+What is provided to non-root accounts is the ability to start the
+testbed and run commands on it (functionality equivalent to
+adt-xenlvm-with-testbed and adt-xenlvm-on-testbed) but not the ability
+to create new testbeds.
+
+To make this feature available:
+ * Install userv
+ * Create a group named AdtXenUs containing the users which should
+ be able to manipulate and use the testbed. (This group can start
+ out empty but should exist before setting up the testbed for
+ the first time.)
+ *
+
+The configuration as supplied does not make it
install: all
$(INSTALL_DIRS) $(bindir) $(docdir) $(man1dir) $(etcconfdir) \
- $(sharedir) $(etcinitddir) $(xenscripts)
+ $(sharedir) $(etcinitddir) $(xenscripts) $(uservsvcdir)
set -e; for f in $(programs) $(shareprograms); do \
$(INSTALL_PROGRAM) $$f $(sharedir); \
done
*) fail 'userv adtxenlvm only supports nominums starting with adt' ;;
esac
-test -d /var/lib/autopkgtest/xenlvm/"$dn" || fail 'unknown distro or nominum'
+dndir=/var/lib/autopkgtest/xenlvm/"$dn"
+test -d "$dndir" || fail 'unknown distro or nominum'
run () {
base="$1"; shift
}
case "$1" in
-with) run adt-xenlvm-with-testbed sh -c 'echo y && exec cat' ;;
+with) adt-xenlvm-with-testbed sh -c 'echo y && exec cat' ;;
pon0) run adt-xenlvm-on-testbed -- --print0-command ;;
*) fail 'unknown mode'
esac