Skip to content

populate-depot: Prune unnecessary files

Ludovico de Nittis requested to merge wip/denittis/prune_runtime into master
  • populate-depot: Calculate mtree from the extracted runtimes

    If we use the compressed runtime to generate the mtree, we need to extract every single file, on the fly, to calculate their hash. But given that when we call write_lookaside() we already have entirely extracted the archive on disk, we can use that uncompressed directory to skip re-extracting the files a second time.

    Additionally this will allow us to remove some files from the runtimes that can be safely omitted to save space, e.g. documentation or support for additional languages.

  • populate-depot: Prune unnecessary files

    Add a list of directories and files that are not needed and can be removed to save disk space.


By implementing the file pruning here, instead of in flatdeb-steam.git, allowed us to have a common prune function between all the container runtimes and the LD_* runtimes.

Part of steamrt/tasks#123

Edited by Ludovico de Nittis

Merge request reports

Loading