Skip to content

Add support for --rootdir option #183

Open

Description

@daandemeyer

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.

Activity

  1. pali commented on Oct 10, 2022

    @pali
    Member

    Yes, that sounds like a nice feature. Patches for it are welcome.

    Meanwhile you can use mcopy binary from mtools project to add new files into the FAT filesystem image without need of root privileges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions