astro / microvm.nix

NixOS MicroVMs
https://astro.github.io/microvm.nix/
MIT License
1.38k stars 101 forks source link

vfat filesystem provisioning error #189

Closed birkb closed 9 months ago

birkb commented 9 months ago

MicroVMs with a vfat filesystem report errors. It works as expected with an ext4 file system.

config:

...
volumes = [ 
                {
                  mountPoint = "/boot";
                  autoCreate = true;
                  fsType = "vfat";
                  label = "boot";
                  size = 256;
                  image = "boot.img";
                }
...

logs:

...
/var/lib/microvms/m3/current/bin/microvm-run: line 16: mkfs.vfat: command not found
...
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for File System Check on /dev/disk/by-label/boot.
...
birkb commented 9 months ago

dosfstools should be a dependency for the host module, or?

astro commented 9 months ago

Thank you for reporting. I pushed a fix.