Builder 767 B

123456789101112131415161718192021222324252627282930313233
  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'
  7. BUILDER_LICENSE="/home/builder/${XILINX_LICENSE}"
  8. apt-get update
  9. apt-get install -y ${RAT_PACKAGES} sudo
  10. adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
  11. echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'
  12. install -o builder -g builder "/cryptech-builder/${XILINX_LICENSE}" "${BUILDER_LICENSE}"
  13. ln -sf /bin/bash /bin/sh
  14. /cryptech-builder/Ratinox
  15. chown -R builder:builder /home/builder
  16. rm -f "${BUILDER_LICENSE}"
  17. apt-get purge -y ${RAT_PACKAGES}
  18. apt-get autoremove -y --purge