Build iso not working

Hi,

Something go wrong during a build iso

[nls@lap ~]$ buildiso -f -p kde -b stable -k linux515 2022.10.18
fatal: detected dubious ownership in repository at '/home/nls/iso-profiles'
To add an exception for this directory, call:

        git config --global --add safe.directory /home/nls/iso-profiles
 --> Profile: [kde]
==> Start building [kde]
==> Cleaning up ...
  -> Deleting chroot [desktopfs] (x86_64) ...
  -> Deleting chroot [rootfs] (x86_64) ...
  -> Deleting isoroot [iso] ...
 --> Loading Packages: [Packages-Root] ...
==> Prepare [Base installation] (rootfs)
 --> mirror: https://manjaro.moson.eu/stable/$repo/$arch
==> Creating install root at /var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs
  -> Installing packages to /var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs
:: Synchronizing package databases...
 core                                                            163,0 KiB   347 KiB/s 00:00 [######################################################] 100%
 extra                                                          1834,1 KiB  1286 KiB/s 00:01 [######################################################] 100%
 community                                                         7,4 MiB  4,63 MiB/s 00:02 [######################################################] 100%
 multilib                                                        175,4 KiB  2,32 MiB/s 00:00 [######################################################] 100%
error: target not found: manjaro-firmware
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
[nls@lap ~]$ 

The manjaro -firmware is installed.

I don’t understand the bug report

fatal: detected dubious ownership in repository at '/home/nls/iso-profiles'
To add an exception for this directory, call:

        git config --global --add safe.directory /home/nls/iso-profiles

Thanks for your help.

That’s no longer in the repos, remove it from your Packages-Root.

1 Like

Thanks for the tip, it works

...
man-db
#manjaro-firmware
manjaro-release
...

unfortunately something go wrong again to build an ISO image

 --> Restoring [/var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs/etc/pacman.conf] ...
  -> Configuring lsb-release
  -> Cleaning [rootfs]
==> Done [Base installation] (rootfs)
 --> Loading Packages: [Packages-Desktop] ...
==> Prepare [Desktop installation] (desktopfs)
 --> overlayfs mount: [/var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs]
 --> mirror: https://manjaro.moson.eu/stable/$repo/$arch
==> Creating install root at /var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs
  -> Installing packages to /var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs
:: Synchronizing package databases...
 core                                                            163,0 KiB   543 KiB/s 00:00 [######################################################] 100%
 extra                                                          1834,1 KiB   816 KiB/s 00:02 [######################################################] 100%
 community                                                         7,4 MiB  1935 KiB/s 00:04 [######################################################] 100%
 multilib                                                        175,4 KiB  1051 KiB/s 00:00 [######################################################] 100%
error: target not found: steam-manjaro
error: target not found: manjaro-documentation-en
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
==> ERROR: A failure occurred in make_image_desktop().
    Aborting...
 --> overlayfs umount: [/var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs]
 --> umount overlayfs: [/var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs]

steam-manjaro and manjaro-documentation-en are no more in the repo ?

They were likely renamed or removed. As someone who makes spins of manjaro this happens sometimes. It is up to the user to find out what happened and edit the package file in the profile. If you really want the packages that were removed, they were likely moved to the aur. In that case you will have to build them, create a repository, move the packages there, and add the repository to the build profile in a user-repos.conf file.

1 Like

Same story as above:

That was renamed to steam.

Thanks for your reply, but

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 steam-1.0.0.75-2-x86_64                                           3,4 MiB  2,13 MiB/s 00:02 [######################################################] 100%
 kdenetwork-filesharing-22.08.1-1-x86_64                         116,4 KiB   995 KiB/s 00:00 [######################################################] 100%
 manjaro-settings-samba-20220924-1-any                            18,9 KiB   331 KiB/s 00:00 [######################################################] 100%
 Total (3/3)                                                       3,6 MiB  1787 KiB/s 00:02 [######################################################] 100%
(1033/1033) checking keys in keyring                                                         [######################################################] 100%
(1033/1033) checking package integrity                                                       [######################################################] 100%
error: ksysguard: signature from "Antonio Rojas <arojas@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/ksysguard-5.22.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
==> ERROR: A failure occurred in make_image_desktop().
    Aborting...
 --> overlayfs umount: [/var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs]
 --> umount overlayfs: [/var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs]
[nls@lap ~]$ sudo pacman -Syyuu
:: Synchronising package databases...
 core                                                            163,0 KiB   549 KiB/s 00:00 [######################################################] 100%
 extra                                                          1834,1 KiB   862 KiB/s 00:02 [######################################################] 100%
 community                                                         7,4 MiB  2,31 MiB/s 00:03 [######################################################] 100%
 multilib                                                        175,4 KiB  1687 KiB/s 00:00 [######################################################] 100%
:: Starting full system upgrade...
 there is nothing to do
[nls@lap ~]$ 

build your own os is a very powerful feature with Manjaro x86

Do you have the archlinux-keyring installed, if you do does it need updating?

some aur package are installed on my devices, the archlinux-keyring are needed ?
how to update the archlinux-keyring ?

[nls@lap ~]$ sudo pacman -S archlinux-keyring
[sudo] Mot de passe de nls : 
warning: archlinux-keyring-20220927-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20220927-1

Total Installed Size:  1,57 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                               [######################################################] 100%
(1/1) checking package integrity                                                             [######################################################] 100%
(1/1) loading package files                                                                  [######################################################] 100%
(1/1) checking for file conflicts                                                            [######################################################] 100%
(1/1) checking available disk space                                                          [######################################################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/1) reinstalling archlinux-keyring                                                         [######################################################] 100%
==> Appending keys from archlinux.gpg...
==> Updating trust database...
gpg: la prochaine vérification de la base de confiance aura lieu le 2022-10-28
==> Updating trust database...
gpg: la prochaine vérification de la base de confiance aura lieu le 2022-10-28
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Refreshing PackageKit...
[nls@lap ~]$ 

really strange last time, how to build an iso image ?

(19/19) Updating the info directory file...
 --> Using build locales ...
mv: cannot stat '/var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs/etc/locale.conf': No such file or directory
 --> Setting mirrorlist branch: stable
Generating locales...
  en_US.UTF-8... done
Generation complete.
Copying saved locales...
Copying complete.
 --> Restoring [/var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs/etc/pacman.conf] ...
  -> Configuring lsb-release
  -> Cleaning [rootfs]
==> Done [Base installation] (rootfs)
 --> Loading Packages: [Packages-Desktop] ...
==> Prepare [Desktop installation] (desktopfs)
 --> overlayfs mount: [/var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs]
mount: /var/lib/manjaro-tools/buildiso/kde/x86_64/desktopfs: mount(2) system call failed: Stale file handle.
       dmesg(1) may have more information after failed mount system call.
==> ERROR: A failure occurred in make_image_desktop().
    Aborting...
[nls@lap ~]$ 

buildiso is working fine - the problem is copy of the iso-profiles not being up-to-date.

You need to update your iso profiles folder to match what is currently in the repo.

git stage .
git commit -m 'my changes'
git pull

or do a fresh clone

before building an iso ensure your host is fully updated and rebooted - kernel module mismatch may create stale mount running buildiso if you don’t reboot after a kernel update.

Another cause to such error is if the build was abrubtly stopped which have led to stale mount.

Reboot and remove the folder /var/lib/manjaro-tools

Nice, it works, thanks a lot all !

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