Merge pull request #587 from larskarlitski/unshare-anaconda

installer: Run anaconda in a mount and pid namespace
This commit is contained in:
Brian C. Lane 2019-02-12 09:34:48 -08:00 committed by GitHub
commit 301cb15120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ def novirt_install(opts, disk_img, disk_size, cancel_func=None):
# Make sure anaconda has the right product and release
log.info("Running anaconda.")
try:
for line in execReadlines("anaconda", args, reset_lang=False,
unshare_args = [ "--pid", "--kill-child", "--mount", "--propagation", "unchanged", "anaconda" ] + args
for line in execReadlines("unshare", unshare_args, reset_lang=False,
env_add={"ANACONDA_PRODUCTNAME": opts.project,
"ANACONDA_PRODUCTVERSION": opts.releasever},
callback=lambda p: not novirt_cancel_check(cancel_funcs, p)):