Netflix / aminator

A tool for creating EBS AMIs. This tool currently works for CentOS/RedHat Linux images and is intended to run on an EC2 instance.
Apache License 2.0
952 stars 170 forks source link

recursive unmount support + better mount/unmount handling #270

Closed bmoyles closed 5 years ago

bmoyles commented 5 years ago

This consolidates mounting/unmounting in the chroot components in the distro plugins rather than have some handled by the volume plugin and some handled by the distro plugin. In addition, it adds support for configurable use of umount --recursive, tries to unmount things if something goes wrong during chroot setup, and provides a cleaner view of open files in busy_mount when looking for open files against a bind mount that may have open handles outside the chroot.