I'm running the most recent version of Morello Linux. I understand that it's based on Debian. What I need is a way to "debootstrap" a small instance of Morello Linux. Is debootstrap supported for Morello Linux?
Hi Russel,
The Morello Linux rootfs is built using the scripts in this repo: https://git.morello-project.org/morello/morello-rootfs-images/-/tree/morello/mainline
As the README suggests, the Debian image is debootstrapped in two stages (first stage in make_image.sh and second stage in build_debian_image.sh).
You should be able to reuse and modify these scripts if you wish to build a custom Debian image. It's worth noting that this is essentially vanilla arm64 Debian; the purecap Morello environment lives in a separate partition (see morello-sdk.img in the README).
Hope that helps!
Kevin
Very helpful - so I can boot into the Morello environment (on ARM) and just do
debootstrap trixie mychrootdir
and that will work? I'm doing this on an Intel box and I'm trying to now move this procedure onto an ARM platform.
Once you've booted Morello Linux you're running arm64 Debian and should have network access, so any standard Debian command like debootstrap should work as you're used to. Just make sure you've got enough disk space for creating the new chroot.