Sha256: b3627454bdd447fb0b5a13d979c022328ad03209c2af3fdf084b263756f6ae72

Contents?: true

Size: 1.49 KB

Versions: 53

Compression:

Stored size: 1.49 KB

Contents

# This step store the bootstrap for a particular distrib and achitechture
# to avoid downloading on every execution
# Bootstrap if needed
- debootstrap:
  - exec_out: |
      export tgz_bootstrap_file=$(echo "../$$workdir""/bootstrap/""$$distrib""_$$debian_version_name""_$$arch"".tar.gz")
      mkdir -p $(dirname $tgz_bootstrap_file)
      if [ ! -f "$tgz_bootstrap_file" ]
      then
          debootstrap --arch=$$arch $$debian_version_name $$rootfs $$distrib_repository
          tar zcf $tgz_bootstrap_file -C $$rootfs --numeric-owner --one-file-system .
      else
          tar zxf $tgz_bootstrap_file -C $$rootfs
          cp -f /etc/resolv.conf $$rootfs/etc
      fi
#- include:
#  - mount_proc
- mount_dev:
  - exec_out: mount -o bind /dev  $$rootfs/dev
  - on_setup_clean: |
      if mountpoint -q $$rootfs/dev
        then umount $$rootfs/dev
      fi

  - exec_out: mount -o bind /dev/pts $$rootfs/dev/pts
  - on_setup_clean: |
      if mountpoint -q $$rootfs/dev/pts
        then umount $$rootfs/dev/pts
      fi
- mount_proc:
  - exec_out: mount -o bind /proc  $$rootfs/proc
  - on_setup_clean: |
      if mountpoint -q $$rootfs/proc
        then umount $$rootfs/proc
      fi
- mount_sys:
  - exec_out: mount -o bind /sys  $$rootfs/sys
  - on_setup_clean: |
      if mountpoint -q $$rootfs/sys
        then umount $$rootfs/sys
      fi

- update_bootstrap:
  - exec_in: |
      DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes update
      DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes dist-upgrade

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
kameleon-builder-2.10.11 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.10 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.9 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.8 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.7 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.6 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.5 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.4 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.3 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.2 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.10.1 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.9.4 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.9.2 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.9.1 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.9.0 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.8.3 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.8.2 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.8.1 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.7.8 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
kameleon-builder-2.7.7 contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml