1234567891011121314151617181920212223242526272829303132 |
- #!/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 sudo'
- apt-get update
- apt-get install -y ${RAT_PACKAGES}
- 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}" \
- "/home/builder/${XILINX_LICENSE}"
- ln -sf /bin/bash /bin/sh
- /cryptech-builder/Ratinox
- chown -R builder:builder /home/builder
- rm -rf "${XILINX_PKGDIR}" "/home/builder/${XILINX_LICENSE}"
- apt-get remove -y --purge --autoremove ${RAT_PACKAGES}
|