Conversation
|
Can you clarify what this actually does? Why is it particularly matter if the Debconf templates are write-able at container build time? |
Sure.
If you look at the current dive analysis above, you can see that the flat file database is present in multiple layers and occupies the top spot for wasted space. By treating the file in the image as read-only we can eliminate this churn of a single file every time debconf updates a template. Instead of overwriting the file multiple times, individual files per package are created for the new content. This keeps the layers clean and removes the wasted space from old versions of the flat file database. |
|
Ah, thanks. How much space does this save? If it's obvious in the analysis I'll check it myself in a bit. |
It's not a lot. Fixing this was simply on my to-do list. I have added the dive analysis lines to my earlier comment. |
meeb
left a comment
There was a problem hiding this comment.
Sure why not. The big Perl script is a bit overkill but sure.
It is. The nice thing about it, is that I can continue to use that on any Debian images, without requiring multiple steps to ensure that For this case, it was important to not use |
Clean up the major dive finding by treating the image file as a read-only component of the database.