Last active
June 27, 2019 09:31
-
-
Save sepfy/8e4e55d5dd4c2ac65f9147a9f8d46d93 to your computer and use it in GitHub Desktop.
Construct a debian rootfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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