Skip to content

Instantly share code, notes, and snippets.

@SamB
Created January 27, 2022 23:25
Show Gist options
  • Save SamB/a087dfc2d13876a46224aab3bfb32749 to your computer and use it in GitHub Desktop.
Save SamB/a087dfc2d13876a46224aab3bfb32749 to your computer and use it in GitHub Desktop.
Make RISC-V chroot
sudo apt-get install sbuild qemu-user-static binfmt-support debian-ports-archive-keyring
sudo sbuild-createchroot --arch=riscv64 unstable /srv/chroot/unstable-riscv64/ --alias=sid --alias=UNRELEASED \
--keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg --include=debian-ports-archive-keyring \
http://deb.debian.org/debian-ports
# Now edit /etc/schroot/chroot.d/unstable-riscv64-sbuild-<gibberish>:
# change "profile=sbuild" to "profile=default".
# Maybe rename it to strip the gibberish, too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment