fix one-off timeout bug; refactor unittest of one-off patching
fix "Oracle Linux won't reboot because perl not installed"