<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Build XCP-ng ISO - issue at create-installimg]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I'm playing around with the build of the XCP-ng ISO to add a custom RPM in it.<br />
Also, I'm facing an issue where I can't find my way out.</p>
<p dir="auto">This is the <code>create-installimg.sh</code> step where setup_yum_repos ( from <code>misc.sh</code> ) doesn't manage to access the yum config.</p>
<p dir="auto">What is weird is that just before this function is called I manage with a simple cat command to access it.<br />
And as per my understanding at reading the script the TPMDIR is set by <code>misc.sh</code> so I don't have control over it.</p>
<p dir="auto">This is the output of my tests currently.</p>
<pre><code class="language-bash">sudo docker run --rm -it -v "$(pwd)/create-install-image:/create-install-image:ro" -v "$(pwd):/output" b292e8a21068 /bin/bash
[root@85b20fccb0e7 /]# /create-install-image/scripts/create-installimg.sh --output /output/install-8.3.img 8.3
-----Set REPOS-----
YUMCONF: //tmpdir-VcYHGW/yum-171swX.conf
YUMREPOSD: //tmpdir-VcYHGW/yum-repos-eg1dEe.d
YUMCONF_TPML: /create-install-image/configs/8.3/yum.conf.tmpl
ROOTFS: //tmpdir-VcYHGW/rootfs-1RKWIe
YUMFLAGS: --config=//tmpdir-VcYHGW/yum-171swX.conf --installroot=//tmpdir-VcYHGW/rootfs-1RKWIe -q
ls REPOSD
cat YUMCONF
[main]
keepcache=1
debuglevel=2
reposdir=//tmpdir-VcYHGW/yum-repos-eg1dEe.d
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=1
assumeyes=1
syslog_ident=mock
syslog_device=
metadata_expire=0
mdpolicy=group:primary
best=1
protected_packages=
skip_missing_names_on_install=0
tsflags=nodocs
--- ISSUE happens here *setup_yum_repos* ----
CRITICAL:yum.cli:Config error: Error accessing file for config file:////tmpdir-VcYHGW/yum-171swX.conf


</code></pre>
<p dir="auto">This is the docker image I'm  using.</p>
<pre><code>sudo docker images
                                                                                                                                                                                           i Info →   U  In Use
IMAGE                                 ID             DISK USAGE   CONTENT SIZE   EXTRA
ghcr.io/xcp-ng/xcp-ng-build-env:8.3   b292e8a21068        543MB             0B        

</code></pre>
<p dir="auto">I have been building this from the xcp-ng build env repo:<br />
<a href="https://github.com/xcp-ng/create-install-image/tree/master" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/xcp-ng/create-install-image/tree/master</a></p>
<p dir="auto">I'm puzzle and can't find what I'm doing wrong here.</p>
<p dir="auto">Any hint will be much welcome !</p>
]]></description><link>https://xcp-ng.org/forum/topic/12078/build-xcp-ng-iso-issue-at-create-installimg</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 17:37:11 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12078.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Apr 2026 14:27:51 GMT</pubDate><ttl>60</ttl></channel></rss>