patterns vs namedCollection

22 views
Skip to first unread message

Roger Oberholtzer

unread,
Nov 3, 2021, 7:25:37 AM11/3/21
to kiwi-...@googlegroups.com
I have been using Kiwi to make OEM images of various openSUSE
releases. Our goal is to have the same things installed on all
systems. The kiwi part has been working great. But in Leap 15.3, I ran
in to some unexpected issues: all things in KDE did not work in the
installed system. For example, removable media did not get a dialog
for what to do with it. And things like configuring multiple monitors
did not survive a new login.

I added some packages by hand (in a brute force approach so I do not
know specifically which added packages solves the problems), which
sorted out the problem. So it must have been missing packages.

In my config.xml, I have always used things like this to get the base KDE:

<package name="patterns-openSUSE-kde"/>
<package name="patterns-openSUSE-kde_plasma"/>

And everything worked in the installed system. Obviously, this is no
longer complete/correct/adequate. I see the following in a recipe for
Gnome (suse-leap-15.3-gnome-workstation) :

<namedCollection name="gnome_basis"/>
<namedCollection name="gnome_imaging"/>
<namedCollection name="gnome_internet"/>
<namedCollection name="gnome_multimedia"/>
<namedCollection name="gnome_office"/>
<namedCollection name="gnome_utilities"/>
<namedCollection name="gnome_yast"/>
<namedCollection name="gnome"/>

I am guessing this is a newer/better way. Is there a counterpart for
KDE? There are no sample recipes for KDE. The command 'zypper
patterns' lists kde, kde-plasma and kde-pim. So I would have thought
that was enough. Maybe it works better using the namedCollection
syntax?

I realize that this might not be a kiwi thing, but I am hoping that
someone else has come across this and discovered a solution. Fingers
crossed.


--
Roger Oberholtzer

Neal Gompa

unread,
Jan 9, 2022, 4:19:20 PM1/9/22
to kiwi-...@googlegroups.com
You can't use namedCollection with OBS. Using the package name instead
of the collection name is better. We just don't have a sample using
KDE Plasma yet.



--
真実はいつも一つ!/ Always, there's only one truth!

Roger Oberholtzer

unread,
Jan 10, 2022, 3:09:58 AM1/10/22
to kiwi-...@googlegroups.com
I'm building these locally in a buildbox, and there it works fine.

The reason for my question was that I was wondering if the patters
were leaving something out. KDE can pop up a dialog when a USB disk is
connected. In my kiwi builds, this was not happening. So I thought
that maybe namedCollection would be better.

It made no difference. Turns out that the none of the KDE
patterns/namedCollections (on 15.3 at least) install a package called
udisk2. Without that package, the disk connect stuff does not happen.
Installing that package solved that issue.



--
Roger Oberholtzer

Marcus Schäfer

unread,
Jan 10, 2022, 4:57:44 AM1/10/22
to kiwi-...@googlegroups.com
Hi,

> The reason for my question was that I was wondering if the patters
> were leaving something out. KDE can pop up a dialog when a USB disk is
> connected. In my kiwi builds, this was not happening. So I thought
> that maybe namedCollection would be better.

There is no difference. If you use namedCollection we pass a name
to the package manager (zypper in your case) and classify it as
a pattern. On SUSE pattern names will be resolved into a package
name. If you know the package name it makes no difference if you
say:

<namedCollection name="patname"/>

or

<package name="package-that-belongs-to-patname"/>

So you should not see any difference

Please note: On other distributions there might be differences
compared to how namedCollection is handled over the package list

> It made no difference. Turns out that the none of the KDE
> patterns/namedCollections (on 15.3 at least) install a package called
> udisk2. Without that package, the disk connect stuff does not happen.
> Installing that package solved that issue.

Yes I think the explicit install is the solution to go

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Am Unterösch 9
Tel: +49 7562 905437 D-88316 Isny / Rohrdorf
Germany
-------------------------------------------------------
signature.asc
Reply all
Reply to author
Forward
0 new messages