golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/linux-arm-qemu/stage2 (about)

     1  #!/bin/sh -e
     2  
     3  # Finish debootstrap
     4  mount -t proc proc /proc
     5  /debootstrap/debootstrap --second-stage
     6  
     7  # Enable the buildlet service.
     8  systemctl enable /etc/systemd/system/buildlet.service
     9  
    10  # Disable logind (which fails without dbus).
    11  rm -f /lib/systemd/system/multi-user.target.wants/systemd-logind.service
    12  
    13  # Slim the image down a bit.
    14  apt-get clean
    15  rm -rf /var/lib/apt/lists /usr/share/doc
    16  (cd /usr/share/locale/ && ls -1 | grep -v en | xargs rm -rf)
    17  rm -rf /var/cache/debconf/*
    18  rm -rf /usr/share/man
    19  
    20  rm /stage2
    21  sync
    22  reboot -f