Borrowing this code for fix to https://github.com/autotest/autotest-docker/issues/55 :grinning: