lorax/src
Brian C. Lane 6b5c4df8b5 lorax-composer: Cancel running Anaconda process
It ends up that this isn't as easy as you'd think. Anaconda sets up some
signal handlers to handle cleanly exiting, but they are not being run
when sent a TERM after package installation has started. I think DNF
resets them causing it to get ignored.

When the cancel is sent it can take several minutes for it to have an
effect. In my testing it usually takes around 2 minutes for anaconda to
notice and exit.

This sends a TERM to the process and then waits for it to exit. When it
returns it then removed any device-mapper devices that were setup for
image installations, removes any hanging loop devices.

It then kills off any process with pyanaconda. in the cmdline, and
anaconda-bus.conf (because anaconda starts a bunch of helpers and if it
doesn't shut down cleanly they remain running).

Resolves: rhbz#1656691
2018-12-17 16:10:04 -08:00
..
bin Revert "Rename composer-cli to composer" 2018-10-08 09:23:47 -07:00
composer Revert "Rename composer-cli to composer" 2018-10-08 09:23:47 -07:00
pylorax lorax-composer: Cancel running Anaconda process 2018-12-17 16:10:04 -08:00
sbin Remove SELinux Permissive checks 2018-11-29 11:06:26 -08:00