@poddingue thank you that was it !
I had the feeling that the issue was around the path with the 4 slashes but couldn't figure out why, what and where.
So essentially, after setting the working directory to /tmp for my docker run it worked.
Here is the extract of the working build step for install.img
- name: Build install.img
run: |
XCPNG_VER="${{ github.event.inputs.xcpng_version }}"
docker run --rm \
--user root -w /tmp \
-v "$(pwd)/create-install-image:/create-install-image:ro" \
-v "/tmp/RPM-GPG-KEY-xcp-ng-ce:/etc/pki/rpm-gpg/RPM-GPG-KEY-xcp-ng-ce" \
-v "$(pwd):/output" \
xcp-ng-build-ready \
bash -ce "
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-xcp-ng-ce
/create-install-image/scripts/create-installimg.sh \
--output /output/install-${XCPNG_VER}.img \
--define-repo base!https://updates.xcp-ng.org/8/${XCPNG_VER}/base \
--define-repo updates!https://updates.xcp-ng.org/8/${XCPNG_VER}/updates \
${XCPNG_VER}
echo 'install.img built'
Regarding the output you wanted to see, here is it when it fails, first the way I trigger the container for context.
sudo docker run --rm -it -v "$(pwd)/create-install-image:/create-install-image:ro" -v "$(pwd):/output" b292e8a21068 /bin/bash
./create-install-image/scripts/create-installimg.sh --output /output/instal.img 8.3
-----Set REPOS-----
--- PWD var and TMPDIR content----
/
total 20
drwx------ 4 root root 4096 Apr 16 00:54 .
drwxr-xr-x 1 root root 4096 Apr 16 00:54 ..
drwx------ 2 root root 4096 Apr 16 00:54 rootfs-FJWbFM
-rw------- 1 root root 295 Apr 16 00:54 yum-HRyIb1.conf
drwx------ 2 root root 4096 Apr 16 00:54 yum-repos-1FbWwV.d
--- ISSUE happens here *setup_yum_repos* ----
CRITICAL:yum.cli:Config error: Error accessing file for config file:////tmpdir-sApL80/yum-HRyIb1.conf
As soon as I'm moving to different directory other than the root / then this issue goes away.
Now going through the ISO build.
With kind regards.