~ubuntu-branches/ubuntu/vivid/autopkgtest/vivid

1
2
3
4
5
6
7
8
9
10
11
12
13
# 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.

mount -o remount,rw /
apt-get update || (sleep 15; apt-get update)
mount -o remount,ro /