123456789101112131415161718192021222324252627282930313233 |
- #!/bin/sh -
- set -ex
- sed -i '/mount -t proc /d; /mount -t sysfs /d' /debootstrap/functions
- /debootstrap/debootstrap --second-stage
- ls -ld "${XILINX_PKGDIR}"
- RAT_PACKAGES='libglib2.0-0 libxrandr2 python-xvfbwrapper ratpoison'
- BUILDER_LICENSE="/home/builder/${XILINX_LICENSE}"
- apt-get update
- apt-get install -y ${RAT_PACKAGES} sudo
- adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
- echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'
- install -o builder -g builder "/cryptech-builder/${XILINX_LICENSE}" "${BUILDER_LICENSE}"
- ln -sf /bin/bash /bin/sh
- /cryptech-builder/Ratinox
- chown -R builder:builder /home/builder
- rm -f "${BUILDER_LICENSE}"
- apt-get purge -y ${RAT_PACKAGES}
- apt-get autoremove -y --purge
|