This program is intended to be run on gokrazy only, where it will create an ext4
file system on the perm partition and then reboot your system. If
already mounted, the program will exit without changing anything.
The gokrazy mkfs program includes a frozen
copy of the
mke2fs program from the
e2fsprogs package from Debian.
You can either include this program in your
gokr-packer command line:
gokr-packer \ -overwrite=/dev/sdx \ -serial_console=disabled \ github.com/gokrazy/fbstatus \ github.com/gokrazy/hello \ github.com/gokrazy/serial-busybox \ github.com/gokrazy/mkfs
…or, if you want to run it only once without otherwise including it in your
installation, you can use
git clone https://github.com/gokrazy/mkfs cd mkfs gok run -i bakery