1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 # installs required packages
13 # must be run from inside the image (either chrooted or running)
20 # /etc/resolv.conf is a symbolic link to /run, restore at end
22 echo "nameserver $nameserver_ip" > /etc/resolv.conf
25 # iperf3 only available for trusty in backports
26 grep trusty /etc/apt/sources.list && \
27 echo "deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list
35 ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf