Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mke2fs: the -d option can now handle tarball input #118

Merged
merged 1 commit into from
Apr 21, 2024

Commits on Apr 18, 2024

  1. mke2fs: the -d option can now handle tarball input

    If archive.h is available during compilation, enable mke2fs to read a
    tarball as input. Since libarchive.so.13 is opened with dlopen,
    libarchive is not a hard library dependency of the resulting binary.
    
    In comparison with feeding a directory tree to mke2fs via -d this has
    the following advantages:
    
     - no superuser privileges, nor fakeroot, nor unshared user namespaces
       are needed to create filesystems with arbitrary ownership information
       and special files like device nodes which otherwise require being root
    
     - by reading a tarball from standard input, no temporary files need to
       be written out first as mke2fs can be used as part of a shell pipeline
       which reduces disk usage and makes the conversion independent of the
       underlying file system
    
    A round-trip from tarball to ext4 to tarball yields bit-by-bit identical
    results
    
    Signed-off-by: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
    josch committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    7e3a4f0 View commit details
    Browse the repository at this point in the history