KiwiUriStyleUnknown on local ISO

3 views
Skip to first unread message

sebastiaan...@gmail.com

unread,
Dec 21, 2022, 5:37:50 AM12/21/22
to kiwi
Hi,

Today I have upgraded my old Kiwi NG (9.20.x) build box to the latest greatest (9.24.55). After updating my config.xml to a newer schema version everything seems to be working, except I can't use an ISO as a repository source anymore:

[ ERROR   ]: 11:26:46 | KiwiUriStyleUnknown: URI schema iso:///opt/data/iso/SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso not supported

My config.xml:

    <repository alias="SLES12-SP5-ISO" priority="13" type="yast2">
        <source path="iso:///opt/data/iso/SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso"/>
    </repository>

According to the docs using an ISO is still supported:


Thanks!

Sebastiaan

Marcus Schäfer

unread,
Dec 21, 2022, 6:13:45 AM12/21/22
to kiwi-...@googlegroups.com
Hi,

> [ ERROR ]: 11:26:46 | KiwiUriStyleUnknown: URI schema
> iso:///opt/data/iso/SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso not
> supported

You are right. I found this commit:

commit 760a65558f9e2e91d3eaa3a2f9503ff596984b48
Author: Marcus Schäfer <marcus....@gmail.com>
Date: Fri Feb 19 11:37:47 2021 +0100

Delete support for generic iso:// source type

The generic iso:// media type mounts the given iso file and expect
its root to provide a repository that can be used 1:1 with a package
manager. This concept is broken since some time and it can't be fixed
in a generic way. All distribution media comes with a certain layout
and basically needs extra handling to become fully usable as
repository. The current implementation of the iso type which simply
mounts the iso and expects its root to be a known repo is not useful.
Therefore the support for it will be decommissioned. Instead we
will provide a documentation chapter that documents how to incorporate
distro ISO media for building images.

> My config.xml:
>
> <repository alias="SLES12-SP5-ISO" priority="13" type="yast2">
> <source
> path="iso:///opt/data/iso/SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso"/>
> </repository>
>
> According to the docs using an ISO is still supported:
>
> https://osinside.github.io/kiwi/concept_and_workflow/repository_setup.h
> tml

my bad we did not update the documentation regarding the change :(

So the commit message tells you why we no longer supported it.
The layout of the ISO media is really very different between
the distros and also changed over time. In the beginning we
thought a simple mount of the ISO and using the mount path as
the repository source would always work. However, this is not
true.

Because of that I'm afraid you need to mount "SLE-12-SP5-Server-DVD-x86_64-GM-DVD1.iso" yourself, diagnose the layout of the mountpoint and
construct proper:

path="dir:///path/to/iso_mountpoint/yadayada"/>

to point to the content of the ISO.

I'm sorry if this is causing you some inconvenience.

We really have to fix the docs

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel: +49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------
signature.asc

sebastiaan...@gmail.com

unread,
Dec 21, 2022, 9:33:20 AM12/21/22
to kiwi
Hi Marcus,

No problem. I will mount the DVD via the kiwi host and use "dir:///" as a source.

Thanks four your quick response.

Regards,

Sebastiaan

Reply all
Reply to author
Forward
0 new messages