Skip to content

Instantly share code, notes, and snippets.

@sepfy
Last active June 27, 2019 09:31
Show Gist options
  • Save sepfy/8e4e55d5dd4c2ac65f9147a9f8d46d93 to your computer and use it in GitHub Desktop.
Save sepfy/8e4e55d5dd4c2ac65f9147a9f8d46d93 to your computer and use it in GitHub Desktop.
Construct a debian rootfs
#/bin/bash
apt-get install binfmt-support qemu qemu-user-static debootstrap
debootstrap --foreign --arch armhf stretch rootfs http://ftp.debian.org/debian/
cp /usr/bin/qemu-arm-static rootfs/usr/bin
sudo chroot rootfs
LC_ALL=C LANGUAGE=C LANG=C chroot . /debootstrap/debootstrap --second-stage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment