Try harder when unmounting
Ensure the permissions on basedir are correct
Use a pty to get more output from yum/dnf
Process carriage returns - don't log overwritten output
Also handle backspaces in output