Builder 760 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh -
  2. set -ex
  3. sed -i '/mount -t proc /d; /mount -t sysfs /d' /debootstrap/functions
  4. /debootstrap/debootstrap --second-stage
  5. ls -ld "${XILINX_PKGDIR}"
  6. RAT_PACKAGES='libglib2.0-0 libxrandr2 python-xvfbwrapper ratpoison sudo'
  7. apt-get update
  8. apt-get install -y ${RAT_PACKAGES}
  9. adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
  10. echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'
  11. install -o builder -g builder \
  12. "/cryptech-builder/${XILINX_LICENSE}" \
  13. "/home/builder/${XILINX_LICENSE}"
  14. ln -sf /bin/bash /bin/sh
  15. /cryptech-builder/Ratinox
  16. chown -R builder:builder /home/builder
  17. rm -rf "${XILINX_PKGDIR}" "/home/builder/${XILINX_LICENSE}"
  18. apt-get remove -y --purge --autoremove ${RAT_PACKAGES}