You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bootstrap-fixup.in 828B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -e
  3. . /etc/lsb-release
  4. echo "deb http://HOSTIP:3142/archive.ubuntu.com/ubuntu $DISTRIB_CODENAME main universe" > $1/etc/apt/sources.list
  5. echo "deb http://HOSTIP:3142/security.ubuntu.com/ubuntu $DISTRIB_CODENAME-security main universe" >> $1/etc/apt/sources.list
  6. echo "deb http://HOSTIP:3142/archive.ubuntu.com/ubuntu $DISTRIB_CODENAME-updates main universe" >> $1/etc/apt/sources.list
  7. echo '127.0.1.1 gitian' >> /etc/hosts
  8. # If LXC
  9. if grep /lxc/gitian /proc/1/cgroup > /dev/null; then
  10. apt-get remove -y rsyslog
  11. dpkg-divert --local --rename --add /sbin/initctl
  12. ln -s /bin/true /sbin/initctl
  13. dpkg-divert --local --rename --add /usr/bin/ischroot
  14. ln -s /bin/true /usr/bin/ischroot
  15. for pkg in lxc cgmanager udev plymouth dmsetup upstart; do
  16. echo $pkg hold | dpkg --set-selections || true
  17. done
  18. fi