Cleanup more /tmp/ files when running with --no-virt

Make extra sure anaconda starts with a clean slate.
This commit is contained in:
Brian C. Lane 2018-03-14 09:01:39 -07:00
parent e425b7ccca
commit 7ad9939fac

View File

@ -247,7 +247,7 @@ def novirt_install(opts, disk_img, disk_size, repo_url, callback_func=None):
selinux.security_setenforce(0)
# Clean up /tmp/ from previous runs to prevent stale info from being used
for path in ["/tmp/yum.repos.d/", "/tmp/yum.cache/"]:
for path in ["/tmp/yum.repos.d/", "/tmp/yum.cache/", "/tmp/yum.root/", "/tmp/yum.pluginconf.d/"]:
if os.path.isdir(path):
shutil.rmtree(path)