/usr/share/autopkgtest/xenlvm/purge is in autopkgtest-xenlvm 2.0.1ubuntu4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash
set -e
adt_readconfig_needlock=y
. ${ADT_XENLVM_SHARE:=/usr/share/autopkgtest/xenlvm}/readconfig
test $nonoptargs = 0 || fail "non-option arguments not allowed"
rm -f $adt_play/good
$ADT_XENLVM_SHARE/cleanup "$@"
for fs in fs swap; do
swap=${fs#fs}; eval "
xl lvchange -a n \$lvm_baselv_${swap}namepath ||:
xl lvchange -a n \$lvm_cowdata_${swap}namepath ||:
xl lvremove \$lvm_baselv_${swap}namepath ||:
xl lvremove \$lvm_cowdata_${swap}namepath ||:
"
done
rm -rf -- "${adt_play}"
|