Manjaro-tools Fails to build Mhwd

Error message

building file list ... done
rsync: [Receiver] change_dir#1 "/home/robin0800/Build/manjaro-tools/lib/buildiso/cinnamon/x86_64/mhwdfs/opt/mhwd/pkg" failed: Too many levels of symbolic links (40)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(768) [Receiver=3.5.0-g471e17dc]
==> ERROR: A failure occurred in make_image_mhwd().
    Aborting...

Try cleaning your the chroot folder.

Ensure the symlinks in your profile folder is valid.

No it still fails and its mhwd thats failing.
I see it takes the mhwd packages then adds more from intel-compute-runtime which adds another fifteen files but where do these come from? Just noticed this intel-compute-runtime is a package and it is not installed. I installed the file and now the question is not asked but the build still fails.

This is the question where does it come from?

`There are 8 providers available for opencl-driver:
:: Repository extra

  1. intel-compute-runtime 2) intel-oneapi-compiler-shared-runtime 3) opencl-mesa 4) opencl-nvidia 5) opencl-nvidia-390xx 6) opencl-nvidia-470xx 7) opencl-nvidia-580xx 8) rocm-opencl-runtime``
found it it did not like the long list to the lib
/home/robin0800/Build/manjaro-tools/lib/buildiso/cinnamon/x86_64/mhwdfs/opt/mhwd/pkg
changed to
$HOME/Build/manjaro-tools/lib/buildiso/cinnamon/x86_64/mhwdfs/opt/mhwd/pkg"
and now it works

The real question is if the extra files are always added to mhwd files why the hell are they not added to the Mhwd files?

I am fairly certain it has something to do with your local layout.

I suggest looking at your manjaro-tools.conf; pay attention to these configuration parameters

This is my customised configuration - do not rely on the mirror - it is not official in any capacity

# cache dir where buildpkg, buildtree cache packages/pkgbuild, builiso iso files
cache_dir='/miso'

# build dir where buildpkg or buildiso chroots are created
chroots_dir='/var/cache/manjaro-tools'

# log dir where log files are created
log_dir='/var/cache/manjaro-tools'

# custom build mirror server
build_mirror=https://manjaro.dk/repo

I just tested and I have no issues of the kind you present

 $ buildiso -p xfce -n 
 --> Profile: [xfce]
==> Start building [xfce]
==> Cleaning up ...
  -> Deleting chroot [desktopfs] (x86_64) ...
  -> Deleting chroot [livefs] (x86_64) ...
  -> Deleting chroot [rootfs] (x86_64) ...
  -> Deleting isoroot [iso] ...
 --> Loading Packages: [Packages-Root] ...

[...]

Writing to 'stdio:/miso/iso/manjaro/xfce/227.10/manjaro-xfce-227.10-unstable-minimal-260815-linux618.iso' completed successfully.

==> Done [Build ISO]
 --> Time compress_images: 1.73 minutes
==> Finished building [xfce]
 --> Time make_profile: 3.58 minutes

The part where the mhwd file system is created

 --> Loading Packages: [Packages-Mhwd] ...
==> Prepare [drivers repository] (mhwdfs)
 --> overlayfs mount: [/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs]
 --> Restoring [/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/etc/pacman.conf] ...
Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Hook Dirs : /usr/share/libalpm/hooks/  /etc/pacman.d/hooks/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
GPG Dir   : /etc/pacman.d/gnupg/
Targets   : linux618-nvidia  linux618-nvidia-390xx  linux618-nvidia-470xx  linux618-nvidia-580xx  linux618-nvidia-580xx-open  linux618-nvidia-open  libxnvctrl  libxnvctrl-390xx  libxnvctrl-470xx  libxnvctrl-580xx  nvidia-390xx-settings  nvidia-390xx-utils  nvidia-470xx-settings  nvidia-470xx-utils  nvidia-580xx-settings  nvidia-580xx-utils  nvidia-prime  nvidia-settings  nvidia-utils  bumblebee  gtkmm3  linux618-bbswitch  linux618-broadcom-wl  libva-intel-driver  libva-mesa-driver  libxaw  libxpm  libxvmc  open-vm-tools  primus  qemu-guest-agent  spice-vdagent  virtualbox-guest-utils  vulkan-icd-loader  vulkan-intel  vulkan-mesa-layers  vulkan-nouveau  vulkan-radeon  vulkan-swrast  vulkan-virtio  xf86-input-vmmouse  xf86-video-amdgpu  xf86-video-ati  xf86-video-dummy  xf86-video-fbdev  xf86-video-intel  xf86-video-nouveau  xf86-video-sisusb  xf86-video-vesa  xf86-video-voodoo
:: Synchronizing package databases...
 core                                  150,2 KiB  4,73 MiB/s 00:00 [####################################] 100%
 extra                                   9,0 MiB  72,0 MiB/s 00:00 [####################################] 100%
 multilib                              143,4 KiB  4,38 MiB/s 00:00 [####################################] 100%
resolving dependencies...
:: There are 8 providers available for opencl-driver:
:: Repository extra
   1) intel-compute-runtime  2) intel-oneapi-compiler-shared-runtime  3) opencl-mesa  4) opencl-nvidia
   5) opencl-nvidia-390xx  6) opencl-nvidia-470xx  7) opencl-nvidia-580xx  8) rocm-opencl-runtime

Enter a number (default=1): 

Packages (66) egl-gbm-1.1.3-1  egl-wayland-4:1.1.21-1  egl-wayland2-1.0.1-1  egl-x11-1.0.5-1
              eglexternalplatform-1.2.1-1  intel-compute-runtime-26.27.39122.11-1  intel-gmmlib-22.10.0-1
              intel-graphics-compiler-1:2.38.2-1  libdnet-1.18.2-1  libmspack-1:1.11-2  numactl-2.0.19-1
              uriparser-1.0.2-1  virtualgl-3.1.4-1  vulkan-mesa-implicit-layers-1:26.1.7-1
              xorg-xhost-1.0.10-1  xorg-xrandr-1.5.4-1  bumblebee-3.2.1-24  gtkmm3-3.24.11-1
              libva-intel-driver-2.4.5-1  libxaw-1.0.16-2  libxnvctrl-610.57.04-1  libxnvctrl-390xx-390.157-5
              libxnvctrl-470xx-470.256.02-2  libxnvctrl-580xx-580.178.04-1  libxpm-3.5.19-1  libxvmc-1.0.15-1
              linux618-bbswitch-0.8-59  linux618-broadcom-wl-6.30.223.271-58  linux618-nvidia-610.57.04-5
              linux618-nvidia-390xx-390.157-60  linux618-nvidia-470xx-470.256.02-58
              linux618-nvidia-580xx-580.178.04-5  linux618-nvidia-580xx-open-580.178.04-5
              linux618-nvidia-open-610.57.04-5  mesa-1:26.1.7-1  nvidia-390xx-settings-390.157-5
              nvidia-390xx-utils-390.157-29  nvidia-470xx-settings-470.256.02-2
              nvidia-470xx-utils-470.256.02-20  nvidia-580xx-settings-580.178.04-1
              nvidia-580xx-utils-580.178.04-1  nvidia-prime-1.0-6  nvidia-settings-610.57.04-1
              nvidia-utils-610.57.04-1  open-vm-tools-6:13.1.0-3  primus-20151110-9
              qemu-guest-agent-11.1.0-1  spice-vdagent-0.23.0-1  virtualbox-guest-utils-7.2.14-1
              vulkan-icd-loader-1.4.357.0-1  vulkan-intel-1:26.1.7-1  vulkan-mesa-layers-1:26.1.7-1
              vulkan-nouveau-1:26.1.7-1  vulkan-radeon-1:26.1.7-1  vulkan-swrast-1:26.1.7-1
              vulkan-virtio-1:26.1.7-1  xf86-input-vmmouse-13.2.0-2  xf86-video-amdgpu-25.0.0-1
              xf86-video-ati-1:22.0.0-3  xf86-video-dummy-0.4.1-3  xf86-video-fbdev-0.5.1-1
              xf86-video-intel-1:2.99.917+939+g4a64400e-1  xf86-video-nouveau-1.0.18-1
              xf86-video-sisusb-0.9.7-6  xf86-video-vesa-2.6.0-3  xf86-video-voodoo-1.2.6-3

Total Download Size:  1214,47 MiB

:: Proceed with download? [Y/n] 
:: Retrieving packages...
 linux618-nvidia-610.57.04-5-x86_64     96,3 MiB  29,0 MiB/s 00:03 [####################################] 100%
 linux618-nvidia-580xx-580.178.04...    88,0 MiB  27,5 MiB/s 00:03 [####################################] 100%
 nvidia-470xx-utils-470.256.02-20...   190,8 MiB  28,0 MiB/s 00:07 [####################################] 100%
 nvidia-390xx-utils-390.157-29-x86_64   30,5 MiB  27,4 MiB/s 00:01 [####################################] 100%
 linux618-nvidia-470xx-470.256.02...    27,8 MiB  27,5 MiB/s 00:01 [####################################] 100%
 linux618-nvidia-open-610.57.04-5...    13,4 MiB  27,2 MiB/s 00:00 [####################################] 100%
 linux618-nvidia-580xx-open-580.1...    12,2 MiB  27,8 MiB/s 00:00 [####################################] 100%
 vulkan-intel-1:26.1.7-1-x86_64          4,8 MiB  26,2 MiB/s 00:00 [####################################] 100%
 linux618-nvidia-390xx-390.157-60...    12,0 MiB  28,2 MiB/s 00:00 [####################################] 100%
 vulkan-nouveau-1:26.1.7-1-x86_64        2,5 MiB  25,0 MiB/s 00:00 [####################################] 100%
 linux618-broadcom-wl-6.30.223.27...  1956,7 KiB  24,2 MiB/s 00:00 [####################################] 100%
 vulkan-swrast-1:26.1.7-1-x86_64         2,3 MiB  25,0 MiB/s 00:00 [####################################] 100%
 nvidia-580xx-settings-580.178.04...   866,2 KiB  20,6 MiB/s 00:00 [####################################] 100%
 nvidia-settings-610.57.04-1-x86_64    943,1 KiB  20,0 MiB/s 00:00 [####################################] 100%
 nvidia-390xx-settings-390.157-5-...   865,6 KiB  22,2 MiB/s 00:00 [####################################] 100%
 nvidia-470xx-settings-470.256.02...   814,7 KiB  22,1 MiB/s 00:00 [####################################] 100%
 vulkan-mesa-layers-1:26.1.7-1-x86_64  457,1 KiB  17,9 MiB/s 00:00 [####################################] 100%
 vulkan-virtio-1:26.1.7-1-x86_64       517,2 KiB  19,4 MiB/s 00:00 [####################################] 100%
 libxnvctrl-390xx-390.157-5-x86_64      98,0 KiB  8,70 MiB/s 00:00 [####################################] 100%
 qemu-guest-agent-11.1.0-1-x86_64      335,0 KiB  18,2 MiB/s 00:00 [####################################] 100%
 libxnvctrl-580xx-580.178.04-1-x86_64   93,8 KiB  7,63 MiB/s 00:00 [####################################] 100%
 libxnvctrl-610.57.04-1-x86_64          93,4 KiB  8,29 MiB/s 00:00 [####################################] 100%
 libxnvctrl-470xx-470.256.02-2-x86_64   93,0 KiB  9,08 MiB/s 00:00 [####################################] 100%
 egl-x11-1.0.5-1-x86_64                 38,7 KiB  3,78 MiB/s 00:00 [####################################] 100%
 egl-wayland2-1.0.1-1-x86_64            37,7 KiB  3,68 MiB/s 00:00 [####################################] 100%
 egl-wayland-4:1.1.21-1-x86_64          36,9 KiB  3,60 MiB/s 00:00 [####################################] 100%
 egl-gbm-1.1.3-1-x86_64                 12,7 KiB  1273 KiB/s 00:00 [####################################] 100%
 linux618-bbswitch-0.8-59-x86_64        11,4 KiB  1265 KiB/s 00:00 [####################################] 100%
 eglexternalplatform-1.2.1-1-any         7,5 KiB   832 KiB/s 00:00 [####################################] 100%
 nvidia-prime-1.0-6-any                  3,3 KiB   370 KiB/s 00:00 [####################################] 100%
 nvidia-580xx-utils-580.178.04-1-...   359,4 MiB  33,3 MiB/s 00:11 [####################################] 100%
 nvidia-utils-610.57.04-1-x86_64       367,2 MiB  33,0 MiB/s 00:11 [####################################] 100%
 Total (32/32)                        1214,5 MiB   109 MiB/s 00:11 [####################################] 100%
(66/66) checking keys in keyring                                   [####################################] 100%
(66/66) checking package integrity                                 [####################################] 100%
  -> Copying mhwd package cache ...
building file list ... done
bumblebee-3.2.1-24-x86_64.pkg.tar.zst
egl-gbm-1.1.3-1-x86_64.pkg.tar.zst
egl-wayland-4:1.1.21-1-x86_64.pkg.tar.zst
egl-wayland2-1.0.1-1-x86_64.pkg.tar.zst
egl-x11-1.0.5-1-x86_64.pkg.tar.zst
eglexternalplatform-1.2.1-1-any.pkg.tar.zst
gtkmm3-3.24.11-1-x86_64.pkg.tar.zst
intel-compute-runtime-26.27.39122.11-1-x86_64.pkg.tar.zst
intel-gmmlib-22.10.0-1-x86_64.pkg.tar.zst
intel-graphics-compiler-1:2.38.2-1-x86_64.pkg.tar.zst
libdnet-1.18.2-1-x86_64.pkg.tar.zst
libmspack-1:1.11-2-x86_64.pkg.tar.zst
libva-intel-driver-2.4.5-1-x86_64.pkg.tar.zst
libxaw-1.0.16-2-x86_64.pkg.tar.zst
libxnvctrl-390xx-390.157-5-x86_64.pkg.tar.zst
libxnvctrl-470xx-470.256.02-2-x86_64.pkg.tar.zst
libxnvctrl-580xx-580.178.04-1-x86_64.pkg.tar.zst
libxnvctrl-610.57.04-1-x86_64.pkg.tar.zst
libxpm-3.5.19-1-x86_64.pkg.tar.zst
libxvmc-1.0.15-1-x86_64.pkg.tar.zst
linux618-bbswitch-0.8-59-x86_64.pkg.tar.zst
linux618-broadcom-wl-6.30.223.271-58-x86_64.pkg.tar.zst
linux618-nvidia-390xx-390.157-60-x86_64.pkg.tar.zst
linux618-nvidia-470xx-470.256.02-58-x86_64.pkg.tar.zst
linux618-nvidia-580xx-580.178.04-5-x86_64.pkg.tar.zst
linux618-nvidia-580xx-open-580.178.04-5-x86_64.pkg.tar.zst
linux618-nvidia-610.57.04-5-x86_64.pkg.tar.zst
linux618-nvidia-open-610.57.04-5-x86_64.pkg.tar.zst
mesa-1:26.1.7-1-x86_64.pkg.tar.zst
numactl-2.0.19-1-x86_64.pkg.tar.zst
nvidia-390xx-settings-390.157-5-x86_64.pkg.tar.zst
nvidia-390xx-utils-390.157-29-x86_64.pkg.tar.zst
nvidia-470xx-settings-470.256.02-2-x86_64.pkg.tar.zst
nvidia-470xx-utils-470.256.02-20-x86_64.pkg.tar.zst
nvidia-580xx-settings-580.178.04-1-x86_64.pkg.tar.zst
nvidia-580xx-utils-580.178.04-1-x86_64.pkg.tar.zst
nvidia-prime-1.0-6-any.pkg.tar.zst
nvidia-settings-610.57.04-1-x86_64.pkg.tar.zst
nvidia-utils-610.57.04-1-x86_64.pkg.tar.zst
open-vm-tools-6:13.1.0-3-x86_64.pkg.tar.zst
primus-20151110-9-x86_64.pkg.tar.zst
qemu-guest-agent-11.1.0-1-x86_64.pkg.tar.zst
spice-vdagent-0.23.0-1-x86_64.pkg.tar.zst
uriparser-1.0.2-1-x86_64.pkg.tar.zst
virtualbox-guest-utils-7.2.14-1-x86_64.pkg.tar.zst
virtualgl-3.1.4-1-x86_64.pkg.tar.zst
vulkan-icd-loader-1.4.357.0-1-x86_64.pkg.tar.zst
vulkan-intel-1:26.1.7-1-x86_64.pkg.tar.zst
vulkan-mesa-implicit-layers-1:26.1.7-1-x86_64.pkg.tar.zst
vulkan-mesa-layers-1:26.1.7-1-x86_64.pkg.tar.zst
vulkan-nouveau-1:26.1.7-1-x86_64.pkg.tar.zst
vulkan-radeon-1:26.1.7-1-x86_64.pkg.tar.zst
vulkan-swrast-1:26.1.7-1-x86_64.pkg.tar.zst
vulkan-virtio-1:26.1.7-1-x86_64.pkg.tar.zst
xf86-input-vmmouse-13.2.0-2-x86_64.pkg.tar.zst
xf86-video-amdgpu-25.0.0-1-x86_64.pkg.tar.zst
xf86-video-ati-1:22.0.0-3-x86_64.pkg.tar.zst
xf86-video-dummy-0.4.1-3-x86_64.pkg.tar.zst
xf86-video-fbdev-0.5.1-1-x86_64.pkg.tar.zst
xf86-video-intel-1:2.99.917+939+g4a64400e-1-x86_64.pkg.tar.zst
xf86-video-nouveau-1.0.18-1-x86_64.pkg.tar.zst
xf86-video-sisusb-0.9.7-6-x86_64.pkg.tar.zst
xf86-video-vesa-2.6.0-3-x86_64.pkg.tar.zst
xf86-video-voodoo-1.2.6-3-x86_64.pkg.tar.zst
xorg-xhost-1.0.10-1-x86_64.pkg.tar.zst
xorg-xrandr-1.5.4-1-x86_64.pkg.tar.zst

sent 1.375.832.624 bytes  received 1.270 bytes  2.751.667.788,00 bytes/sec
total size is 1.375.491.036  speedup is 1,00
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/bumblebee-3.2.1-24-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/egl-gbm-1.1.3-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/egl-wayland-4:1.1.21-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/egl-wayland2-1.0.1-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/egl-x11-1.0.5-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/eglexternalplatform-1.2.1-1-any.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/gtkmm3-3.24.11-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/intel-compute-runtime-26.27.39122.11-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/intel-gmmlib-22.10.0-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/intel-graphics-compiler-1:2.38.2-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libdnet-1.18.2-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libmspack-1:1.11-2-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libva-intel-driver-2.4.5-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxaw-1.0.16-2-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxnvctrl-390xx-390.157-5-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxnvctrl-470xx-470.256.02-2-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxnvctrl-580xx-580.178.04-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxnvctrl-610.57.04-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxpm-3.5.19-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/libxvmc-1.0.15-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-bbswitch-0.8-59-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-broadcom-wl-6.30.223.271-58-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-nvidia-390xx-390.157-60-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-nvidia-470xx-470.256.02-58-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-nvidia-580xx-580.178.04-5-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-nvidia-580xx-open-580.178.04-5-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-nvidia-610.57.04-5-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/linux618-nvidia-open-610.57.04-5-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/mesa-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/numactl-2.0.19-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-390xx-settings-390.157-5-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-390xx-utils-390.157-29-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-470xx-settings-470.256.02-2-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-470xx-utils-470.256.02-20-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-580xx-settings-580.178.04-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-580xx-utils-580.178.04-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-prime-1.0-6-any.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-settings-610.57.04-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/nvidia-utils-610.57.04-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/open-vm-tools-6:13.1.0-3-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/primus-20151110-9-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/qemu-guest-agent-11.1.0-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/spice-vdagent-0.23.0-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/uriparser-1.0.2-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/virtualbox-guest-utils-7.2.14-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/virtualgl-3.1.4-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-icd-loader-1.4.357.0-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-intel-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-mesa-implicit-layers-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-mesa-layers-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-nouveau-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-radeon-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-swrast-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/vulkan-virtio-1:26.1.7-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-input-vmmouse-13.2.0-2-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-amdgpu-25.0.0-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-ati-1:22.0.0-3-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-dummy-0.4.1-3-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-fbdev-0.5.1-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-intel-1:2.99.917+939+g4a64400e-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-nouveau-1.0.18-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-sisusb-0.9.7-6-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-vesa-2.6.0-3-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xf86-video-voodoo-1.2.6-3-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xorg-xhost-1.0.10-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/xorg-xrandr-1.5.4-1-x86_64.pkg.tar.zst'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Creating updated database file '/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs/opt/mhwd/pkg/mhwd.db.tar.gz'
 --> Configuring mhwd db ...
  -> Disabling rt3562sta driver
  -> Disabling r8168 driver
 --> overlayfs umount: [/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs]
 --> umount overlayfs: [/var/cache/manjaro-tools/buildiso/xfce/x86_64/mhwdfs]
  -> Cleaning [mhwdfs]
==> Done [drivers repository] (mhwdfs)

As you can see this part is a simple fetch of the packages and creating an offline driver repository which is used by the installer and the mhwd configuration service.

1 Like

Yes but the files it fetches are always the same so could be included in Mhwd packages?

I have no idea what you mean.

Your build fails due to a local issue with - according to your initial topic

The Packages-Mhwd is a symlink that points to iso-profiles/shared/Packages-Mhwd.

There is no need to change the content of that file.

The packages will ALWAYS be pulled from the configured build_mirror to create the driver repo as they are required by mhwd to correctly install drivers in live session.

The tools offers a lot of options when you get to know it.

E.g. you can omit Nvidia by changing in profile.conf

# nonfree mhwd drivers
nonfree_mhwd="false"

Another example is lib32-* known as multilib (can also be on buildiso cmdline using -n)

# use multilib packages; x86_64 only
multilib="false"

You can even disable mhwd completely (from experience - not recommended) - but alas it can be done for specific purposes e.g. a minimalist rescue ISO with no GUI and installer.

And you can completely leave out the mhwd repo - you see fit - rename the Packages-Mhwd symlink as Package-Mhwd.unused

Multilib = false does not work as a switch as there is a kludge in util-iso.sh line 222 that stops it being disabled. I remove this to remove it from build iso, so buildiso has no multilib but then the switch does not work.

Then you are using another set of scripts as the util-iso.sh line 222 is in the make_iso() function which has nothing to do with packages.

Sorry it’s 622 not 2222

I think you are grasping straws to find why your build is failing.

It has nothing to do with your mhwd errors…

get_pacman_conf(){
    local user_conf=${profile_dir}/user-repos.conf pac_arch='default' conf
    [[ "${target_arch}" == 'x86_64' ]] && pac_arch='multilib'
    if [[ -f ${user_conf} ]]; then
        info "detected: %s" "user-repos.conf"
        check_user_repos_conf "${user_conf}"
        conf=${tmp_dir}/custom-pacman.conf
        cat ${DATADIR}/pacman-$pac_arch.conf ${user_conf} > "$conf"
    else
        conf="${DATADIR}/pacman-$pac_arch.conf"
    fi
    echo "$conf"
}

Perhaps you should clear your environment and start fresh.

Be sure to check the iso profile you use for errors in the symlinks - especially circular errors which will cause errors.

have you tried building a new vm with 8 cores and 16 gb memory. Just do a default install manjaro with latest Bian May. After that imply manjaro buildiso and see if it works for you.
imply the tutorial linux-aarhus made on the forum for buildiso.

Curious if you have errors than.

622 is the multilib error

I fixed the symlink error the path was too long once I shornted it, It now builds.

I think you need to define what you mean - without multilib.

I can tell you what without multilib means in context of the buildiso tool

It means that packages tagged with >multilib in the package lists will not be included in the final ISO.

Example Packages-Mhwd

## The following is only temp until we find a better solution
>office libreoffice-still
>office freeoffice

## Normal MHWD package list
#KERNEL-headers
#KERNEL-r8168
#KERNEL-rt3562sta
#KERNEL-virtualbox-guest-modules
#KERNEL-zfs
#zfs-dkms
#zfs-utils # only used for architect which we don't ship

>multilib lib32-libxvmc
>multilib lib32-primus
>multilib lib32-vulkan-intel
>multilib lib32-vulkan-nouveau
>multilib lib32-vulkan-radeon
>nonfree_multilib lib32-nvidia-390xx-utils
>nonfree_multilib lib32-nvidia-470xx-utils
>nonfree_multilib lib32-nvidia-580xx-utils
>nonfree_multilib lib32-nvidia-utils
>nonfree_x86_64 KERNEL-nvidia
>nonfree_x86_64 KERNEL-nvidia-390xx
>nonfree_x86_64 KERNEL-nvidia-470xx
>nonfree_x86_64 KERNEL-nvidia-580xx
>nonfree_x86_64 KERNEL-nvidia-580xx-open
>nonfree_x86_64 KERNEL-nvidia-open
>nonfree_x86_64 libxnvctrl
>nonfree_x86_64 libxnvctrl-390xx
>nonfree_x86_64 libxnvctrl-470xx
>nonfree_x86_64 libxnvctrl-580xx
>nonfree_x86_64 nvidia-390xx-settings
>nonfree_x86_64 nvidia-390xx-utils
>nonfree_x86_64 nvidia-470xx-settings
>nonfree_x86_64 nvidia-470xx-utils
>nonfree_x86_64 nvidia-580xx-settings
>nonfree_x86_64 nvidia-580xx-utils
>nonfree_x86_64 nvidia-prime
>nonfree_x86_64 nvidia-settings
>nonfree_x86_64 nvidia-utils
bumblebee
gtkmm3
KERNEL-bbswitch
KERNEL-broadcom-wl
libva-intel-driver
libva-mesa-driver
libxaw
libxpm
libxvmc
open-vm-tools
primus
qemu-guest-agent
spice-vdagent
virtualbox-guest-utils
vulkan-icd-loader
vulkan-intel
vulkan-mesa-layers
vulkan-nouveau
vulkan-radeon
vulkan-swrast
vulkan-virtio
xf86-input-vmmouse
xf86-video-amdgpu
xf86-video-ati
xf86-video-dummy
xf86-video-fbdev
xf86-video-intel
xf86-video-nouveau
xf86-video-sisusb
xf86-video-vesa
xf86-video-voodoo

It does not mean that this part of pacman.conf is omitted or commented

[multilib]
Include = /etc/pacman.d/mirrorlist

If that is true - how come that I have no issues with building without multilib?

If you are looking at the final pacman.conf - then yes - multilib repo will be enabled.

But that was not your issue - your issue was some nested symlinking that made rsync run in circles.

The only thing the function does is

  1. check if architecture is x86_64
  2. if yes then use a pacman.conf which a multilib repo activated.

Even given the multilib repo is enabled - there is no lib32-* packages in the final ISO - unless you have added packages with specifically depends on a multilib package.

Its not that That kludge puts multilib in build iso it dose not work, but iot’s still there.

The switch should remove it from buildiso it does not perhaps it could be fixed?

What kludge?

You are not making sense at all…

All it does is setting a local variable which is subsequently used to copy a pacman.conf template

  • pacman-default.conf
  • pacman-multilib.conf

The one in util-iso.sh at line 622 "&& pac_arch='multilib"’

If I remove this multilib disappears from buildiso with it in place it’s still there.
This is irrespective of the switch true or false

Yes - bash can be rather confusing - it took me years to learn the fraction I know.

It is variable local to the function with a preset value

You need to be a lot more specific because you are making no sense at all.

The content of a local variable use to generate pacman.conf has nothing to do with the multilib configuration setting in profile.conf.

@moderators Please close this - it has gone way off-topic.

Ai-ai cap’n!