Skip to content

Instantly share code, notes, and snippets.

@abrodkin
Created April 2, 2021 07:08
Show Gist options
  • Save abrodkin/101c70e11d111614fd22052a9ee69ae3 to your computer and use it in GitHub Desktop.
Save abrodkin/101c70e11d111614fd22052a9ee69ae3 to your computer and use it in GitHub Desktop.
Running Debian rebootstrap in Docker container

On the host:

git clone https://salsa.debian.org/vineetgarc/rebootstrap.git
cd rebootstrap
docker run --privileged --rm -it -v $PWD:/host debian:stretch /bin/bash

In the container:

apt-get update && apt-get install -y pbuilder
pbuilder create
cd /host && time pbuilder --execute bootstrap.sh HOST_ARCH=arc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment