假設我們工作於 debian based distro 中. 首先, 裝上需要用的工具 $ sudo apt-get install debootstrap qemu-user-static 因為我們會在 x86 環境下執行 armhf binary, 所以需要用到 qemu-user. 並且因為我們會做 chroot/systemd-nspawn, process 的 root 會指向 armhf 的, 因此 qemu 必須使用 static 版本, 以免外部 shared library 相依. 接著, 用 debootstrap 產生 rootfs $ sudo debootstrap