This file is indexed.

/usr/share/autopkgtest/xenlvm/cleanup 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
20
21
22
23
24
25
26
27
#!/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"

mkdir -p $adt_play

try_es () { printf "%s\n" "- $*"; "$@" >/dev/null 2>&1; }
try () { try_es "$@" ||:; }

n=0
try xm destroy $adt_xmname 2>/dev/null
try umount $lvm_baselv_namepath
for fs in fs swap; do
 swap=${fs#fs}; eval "
  sleeptime=0
  while try_es dmsetup info \$adt_devmapper_${swap}cowdev; do
	try dmsetup remove \$adt_devmapper_${swap}cowdev
	[ \$sleeptime -le 5 ] || \
		fail "timed out trying dmsetup info/remove ${swap}"
	sleep \$sleeptime
	sleeptime=\$(( \$sleeptime + 1 ))
  done
 "
done
rm -f $lvm_fslink_ptr $lvm_swaplink_ptr