This file is indexed.

/usr/share/autopkgtest/setup-commands/ro-apt-update is in autopkgtest 4.4.

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
#!/bin/sh
# This script is is part of autopkgtest
# Copyright (C) 2015 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
#
# --setup-commands script for temporarily making the root file system writable,
# run apt-get update, and make the root fs readable again. This allows tests to
# download/unpack test dependencies on older images whose apt indexes are out
# of date.

set -e
mount -o remount,rw /
# ensure that this fails with something other than 100, as apt-get update
# failures are usually transient
apt-get update || (sleep 15; apt-get update) || false
mount -o remount,ro /