aboutsummaryrefslogtreecommitdiff
path: root/stage1
blob: a4cfa564fee72bd8330fcfa3ac7f0354735e0604 (plain) (blame)
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
#!/bin/sh -

set -ex

# Finish debootstrap (stage0 did debootstrap --foreign)

sed -i '/mount -t proc /d; /mount -t sysfs /d' /debootstrap/functions
/debootstrap/debootstrap --second-stage
			    
# The XiLinx tools don't like dash but are OK with bash.

ln -sf /bin/bash /bin/sh

# Jump through hoops to install the XiLinx software in this container.

apt-get update

apt-get install -y \
    libglib2.0-0 \
    libxrandr2 \
    python-xvfbwrapper \
    ratpoison \
    sudo

/cryptech-builder/ratinox ise-install

# Assuming we survived that, we're done with the 6GB
# XiLinxinstallation package.

rm -rf /Xilinx_ISE_DS_Lin_14.7_1015_1

# Create non-root user (with sudo privs, for pbuilder)

adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'