woods.art
: Home Docs Downloads - Git repos

Create a rootfs (using NVME)

NVME Partition Table

Just create a /boot partition, then a / partition with a MS-DOS partition table.. You can add a swap paritition if you want.

Create a Devuan debootstrap

For stage 1 (with the system's / and /boot mounted in /mnt):

# aptitude install debootstrap qemu-user-static
# debootstrap --foreign --arch=arm64 daedalus /mnt http://deb.devuan.org/merged/ daedalus

Then, for stage 2:

# cp /usr/bin/qemu-aarch64-static /mnt/usr/bin/
# chroot /mnt /usr/bin/qemu-aarch64-static /bin/sh -i
(chroot) # /debootstrap/debootstrap --second-stage
(chroot) # passwd
(chroot) # adduser someuser
(chroot) # apt-get install locales
(chroot) # apt-get install dropbear
(chroot) # vi /etc/hosts /etc/fstab /etc/network/interfaces /etc/apt/sources.list etc
(chroot) # anything else you wanna do
(chroot) # exit
#