not-os

Digital Ocean

$ ./make-qcow2.sh
...

The make-qcow2.sh script creates an image that boots with Digital Ocean custom image feature.

This script is a work around the limitation of Digital Ocean not supporting the FAT16 boot partition of the raw derivation. It is also not just a Nix attribute in default.nix because I didn’t find a way to built the same result without using sudo, losetup or mount.

The resulting image.qcow2 file can further be compressed with gzip and uploaded to Digital Ocean.

Notes

/dev/vdb: LABEL="config-2" TYPE="iso9660"
/dev/vda1: LABEL="rootfs" UUID="..." TYPE="ext4"