Both mkfs.btrfs and mkfs.ext4 support an option to specify a directory to bootstrap the generated filesystem from. This allows creating ext4 or btrfs filesystems in a file without needing root privileges since the filesystem doesn't need to be mounted to populate it. It would be great if mkfs.fat would also support such an option so that we can populate fat partitions without needing root privileges.