So far, all of the configuration work we have performed has been very black and white—we are either installing something (be that a file or a package), or we could equally and just as easily delete it (more on this in the section on cleaning up). However, what if something more subtle is required? Earlier in this chapter, in the section entitled Transferring files into the image, we replaced the entire chrony.conf file with our own version. This, however, might be a bit too much brute force—for example, we might only need to change one line in a file, and replacing the entire file to change one line is a bit heavy-handed, especially when you consider that the configuration file might get updated in a future package ...
Editing configuration files
Get Hands-On Enterprise Automation on Linux now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.