Skip to content

When --rootdir is used, create the loopback file if it does not exist #528

Open
@DaanDeMeyer

Description

@DaanDeMeyer

I'd like to create minimal btrfs filesystems using --rootdir. Currently, I have to provide the file backed image myself which means I have to come up with a good size for it so that all the files specified with --rootdir will fit. Coming up with the size myself is very hard as I don't have enough information available to know how much space btrfs will need to store the files from --rootdir. I'd like for mkfs.btrfs to create the loopback file if it does not exist and make sure it is just large enough to store all the files from --rootdir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions