Sha256: 44dff409403a501d5d3b583706b3647540beecfded08951031902d2f7b404365

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

# # Bootstrap
- enable_cache: true

- debootstrap:
  - check_cmd_out: debootstrap
  - check_cmd_out: qemu-arm-static
  - exec_out: |
        if [ $$enable_cache = true ]; then
            [[ ! -f "$$rootfs_download_path/.kameleon_timestamp"  ]] || CACHE_AVAILABLE=1
        fi
        if [ -n $CACHE_AVAILABLE  ]; then
          mkdir -p $$rootfs_download_path
          debootstrap --no-check-gpg --foreign --variant=minbase --arch=$$arch --include="$$include_pkg" $$release $$rootfs_download_path $$repository
          QEMU_USER_PATH=$(which qemu-arm-static)
          cp $QEMU_USER_PATH $$rootfs_download_path/usr/bin/qemu-arm-static
          chroot $$rootfs_download_path /usr/bin/qemu-arm-static -cpu cortex-a9 /bin/sh /debootstrap/debootstrap --second-stage
          echo "deb $$repository wheezy main contrib non-free" > $$rootfs_download_path/etc/apt/sources.list
          chroot $$rootfs_download_path /usr/bin/qemu-arm-static -cpu cortex-a9 /bin/sh apt-get update
          chroot $$rootfs_download_path /usr/bin/qemu-arm-static -cpu cortex-a9 /bin/sh apt-get install -y --force-yes vim
          date +%s > $$rootfs_download_path/.kameleon_timestamp
        fi
  - exec_out: false
  - exec_out: date +%s > $$rootfs_download_path/.kameleon_timestamp
  - exec_out: cat /etc/resolv.conf > $$rootfs_download_path/etc/resolv.conf
  - write_out:
    - $$rootfs_download_path/etc/network/interfaces
    - |
      auto lo
      iface lo inet loopback
      auto eth0
      iface eth0 inet dhcp

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kameleon-builder-2.1.3 templates/steps/bootstrap/debian/debootstrap_arm.yaml
kameleon-builder-2.1.1 templates/steps/bootstrap/debian/debootstrap_arm.yaml
kameleon-builder-2.1.0 templates/steps/bootstrap/debian/debootstrap_arm.yaml