blob: 196eacb8cd29de76d0dd0d45eb05592c1a0aafd5 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#!/bin/sh
# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------
set -u
if [ $(id -u) -ne 0 ]; then
echo >&2 "Verifying access to sudo, please enter your password if prompted."
sudo -v
if [ $? -ne 0 ]; then
echo >&2 "Could not use sudo, exiting"
exit 1
fi
exec sudo "$0" "$@"
fi
set -- \
binutils \
bzip2 \
ca-certificates \
chrpath \
cpio \
cpp \
diffstat \
file \
g++ \
gawk \
gcc \
git \
libc-dev-bin \
locales \
make \
patch \
python3 \
python3-distutils \
rsync \
wget \
ssh
# This is helpful to write images, and is in our documentation
set -- "$@" bmap-tools
echo >&2 "Installing packages.."
apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y -f --no-install-recommends "$@"
echo >&2 "Generating the en_US.UTF-8 locale"
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
echo >&2 "Setup complete"
|