From c038bb53c60cd7e9e335dab1909f4884e30ad123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Fri, 10 Jan 2020 11:10:48 +0100 Subject: [PATCH] livemedia-creator: workaround glibc limitation when starting anaconda On some platforms (aarch64, ppc64le) toolchain limitations/optimizations can break anaconda startup, as discussed in rhbz#1722181. The workaround is to preload libgomp.so before starting anaconda. --- src/pylorax/installer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pylorax/installer.py b/src/pylorax/installer.py index a6c22fc9..b882ecfe 100644 --- a/src/pylorax/installer.py +++ b/src/pylorax/installer.py @@ -398,12 +398,14 @@ def novirt_install(opts, disk_img, disk_size, cancel_func=None, tar_img=None): cancel_funcs.append(cancel_func) # Make sure anaconda has the right product and release + # Preload libgomp.so.1 to workaround rhbz#1722181 log.info("Running anaconda.") try: 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}, + "ANACONDA_PRODUCTVERSION": opts.releasever, + "LD_PRELOAD": "libgomp.so.1"}, callback=lambda p: not novirt_cancel_check(cancel_funcs, p)): log.info(line)