thirdgen88 / ignition-docker

Ignition Docker Community Image
MIT License
72 stars 17 forks source link

Added batching of chown operations #146

Closed thirdgen88 closed 1 year ago

thirdgen88 commented 1 year ago

📖 Background

In some situations, with large numbers of existing files in an Ignition data volume, the existing per-file chown mechanism could fail due to a violation of bash MAX_ARGS count.

⚙️ Summary

This PR adds a simple batching of the chown calls with a size of 500 per invocation. Changes applied to both 7.9 and 8.1 docker entry point scripts.