Buildiso: '/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs/usr/lib/modules/*/version': No such file or directory

Hello Forum,
could anyone help me with this error message: (error occurs with manjaro-tools-iso-git from extra)
there is no folder version in ‘/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs/usr/lib/modules/*/’
any hint?

==> Done [drivers repository] (mhwdfs)
==> Prepare [/iso/boot]
→ overlayfs mount: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]
→ Copying initcpio …
cat: ‘/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs/usr/lib/modules/*/version’: No such file or directory
** → overlayfs umount: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]**
** → umount overlayfs: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]**
==> ERROR: ‘/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs’ does not appear to be a Manjaro chroot.
==> ERROR: A failure occurred in make_image_boot().
Aborting…
→ overlayfs umount: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]
→ umount overlayfs: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]

It is normal if you neglected to restart your system after update.

So restart your system and restart your build

Hello linux-aarhus,
thank you for your attention, but unfortunately this did not the trick. Fresh reboot, after a full system upgrade, still the same Error.

Do you have any other suggestions?
Kind regards,
Michael

What exact version of the tools you are using?

I don’t know why your system is behaving like this.

I use the tools - if not daily - then weekly - and I have no issues building an ISO.

Please tells us the full command you use when building the ISO e.g.

buildiso -p <profile> -b <branch> -k <kernel>

There is some control files which is verified against the current version of the scripts. If such control file doesn’t match the file system is rejected.

Do not use the -c argument unless you also use -z argument.

As a last resort you can clear your ${cache_dir} - the default is /var/lib/manjaro-tools

sudo rm -rf /var/lib/manjaro-tools

Current versions

 $ pacman-mirrors -G
unstable

 $ pamac search manjaro-tools | grep Installed
manjaro-tools-yaml-git  r3035.3a5c25c-1 [Installed]         extra
manjaro-tools-iso-git  r3035.3a5c25c-1 [Installed]          extra
manjaro-tools-base-git  r3035.3a5c25c-2 [Installed]         extra

 $ pamac info manjaro-tools-iso-git
Name                  : manjaro-tools-iso-git
Version               : r3035.3a5c25c-1
Description           : Development tools for Manjaro Linux (ISO tools)
URL                   : https://gitlab.manjaro.org/tools/development-tools/manjaro-tools
Licenses              : GPL-3.0-or-later
Repository            : extra
Installed Size        : 111,3 kB
Groups                : manjaro-tools
Depends On            : dosfstools git grub libisoburn manjaro-tools-yaml-git mkinitcpio mktorrent snapd
                        squashfs-tools
Optional Dependencies : --
Required By           : --
Optional For          : manjaro-tools-base-git
Provides              : manjaro-tools-iso=0.15.15dev
Replaces              : --
Conflicts With        : manjaro-tools-iso
Packager              : Philip Mueller <philm@manjaro.org>
Build Date            : man 29 jan 2024 09:46:02 CET
Install Date          : ons 14 feb 2024 14:06:32 CET
Install Reason        : Explicitly installed
Validated By          : Signature
Backup files          : --

 $ pamac info manjaro-tools-base-git
Name                  : manjaro-tools-base-git
Version               : r3035.3a5c25c-2
Description           : Development tools for Manjaro Linux (base tools)
URL                   : https://gitlab.manjaro.org/tools/development-tools/manjaro-tools
Licenses              : GPL-3.0-or-later
Repository            : extra
Installed Size        : 68,8 kB
Groups                : manjaro-tools
Depends On            : gnupg openssh os-prober pacman-mirrors rsync
Optional Dependencies : manjaro-tools-pkg-git: Manjaro Linux package tools
                        manjaro-tools-iso-git: Manjaro Linux iso tools [Installed]
                        manjaro-tools-yaml-git: Manjaro Linux yaml tools [Installed]
                        haveged: for faster keygen tasks
Required By           : manjaro-tools-yaml-git
Optional For          : --
Provides              : manjaro-tools-base=0.15.15dev
Replaces              : --
Conflicts With        : manjaro-tools-base
Packager              : Philip Mueller <philm@manjaro.org>
Build Date            : ons 14 feb 2024 16:53:35 CET
Install Date          : tor 15 feb 2024 09:42:59 CET
Install Reason        : Explicitly installed
Validated By          : Signature
Backup files          : /etc/manjaro-tools/manjaro-tools.conf

 $ pamac info manjaro-tools-yaml-git
Name                  : manjaro-tools-yaml-git
Version               : r3035.3a5c25c-1
Description           : Development tools for Manjaro Linux (yaml
                        tools)
URL                   : https://gitlab.manjaro.org/tools/development-t
                        ols/manjaro-tools
Licenses              : GPL-3.0-or-later
Repository            : extra
Installed Size        : 23,4 kB
Groups                : manjaro-tools
Depends On            : calamares-tools manjaro-iso-profiles-base
                        manjaro-tools-base-git ruby-kwalify
Optional Dependencies : --
Required By           : manjaro-tools-iso-git
Optional For          : manjaro-tools-base-git
Provides              : manjaro-tools-yaml=0.15.15dev
Replaces              : --
Conflicts With        : manjaro-tools-yaml
Packager              : Philip Mueller <philm@manjaro.org>
Build Date            : man 29 jan 2024 09:46:02 CET
Install Date          : ons 14 feb 2024 14:06:32 CET
Install Reason        : Explicitly installed
Validated By          : Signature
Backup files          : --

I use the default iso-build folder fresh from the git:

"git clone https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git ~/iso-profiles"

I cleared the cache_dir,
tools installed:
manjaro-tools-yaml-git r3035.3a5c25c-1 [Installed] extra
manjaro-tools-iso-git r3035.3a5c25c-1 [Installed] extra
manjaro-tools-base-git r3035.3a5c25c-2 [Installed] extra

command that I use:
buildiso -p xfce -b stable -k linux61

ERROR MESSAGE:
==> Prepare [/iso/boot]
→ overlayfs mount: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]
→ Copying initcpio …
cat: ‘/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs/usr/lib/modules/*/version’: No such file or directory
→ overlayfs umount: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]
→ umount overlayfs: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]
==> ERROR: ‘/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs’ does not appear to be a Manjaro chroot.
==> ERROR: A failure occurred in make_image_boot().
Aborting…
→ overlayfs umount: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]
→ umount overlayfs: [/var/lib/manjaro-tools/buildiso/xfce/x86_64/bootfs]

You do realise the team is using these tools all the time - right?
And the same tools is used to build release, release-review and developer-preview ISOs - right?

I am not able reproduce your issue on clean bare-metal installation using stable branch with the tools provided using stable branch.

None of us can possibly guess why your system behaves awkward so you will have to look through your system to locate the issue.

One possibility is that you - at some point - has build the tools locally using make && sudo make install. This will create a local tools setup in /usr/local/bin - which will shadow the files provided by the packages - and this can create unexpected issues.

If you didn’t - the issue is still local to your system - we have no means of deducing what causes the behavior on your system.

Ok, thats the point!
I had a problem 2 weeks ago with amd-ucode.img missing after calamares installation with my custom iso… therefore someone suggested to install from:
"git clone https://gitlab.manjaro.org/tools/development-tools/manjaro-tools"

what to clean up in my system in /usr/local/bin?

ok, I just deleted /usr/local/bin/buildiso
now it seems to work for default setting.
:smiley:
THX YOU!!!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.