Cleanup more /tmp/ files when running with --no-virt
Make extra sure anaconda starts with a clean slate.
This commit is contained in:
parent
e425b7ccca
commit
7ad9939fac
@ -247,7 +247,7 @@ def novirt_install(opts, disk_img, disk_size, repo_url, callback_func=None):
|
|||||||
selinux.security_setenforce(0)
|
selinux.security_setenforce(0)
|
||||||
|
|
||||||
# Clean up /tmp/ from previous runs to prevent stale info from being used
|
# 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):
|
if os.path.isdir(path):
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user