Hi Subhash,
> Regarding the package ordering, I agree with you. I will setup
> dependencies in my rpms to set the order right.
Perfect
> Its just that I though a package like systemd, which more or less is
> part of the OS boot process, would be getting
>
> installed before any other packages. Especially at least before any of
> the packages which are build by user and not
It's correct that systemd is required by many packages but not by all.
A typical bootstrap section for a suse based kiwi build has this
packages:
<packages type="bootstrap">
<package name="udev"/>
<package name="filesystem"/>
<package name="glibc-locale"/>
<package name="cracklib-dict-full"/>
<package name="ca-certificates"/>
<package name="openSUSE-release"/>
</packages>
None of them will pull in systemd. This means the kiwi bootstrap
phase with this settings will already resolve into a relatively big list
of packages excluding systemd.
So the assumption systemd must be a candidate before any others
is not correct.
The point here is that from a kiwi perspective we really can't
control the order of package installations as we trust the package
manager to do it right. The package manager can do it right only
if the packages are correct. In any other case some nasty workarounds
are needed, like the trick I mentioned in my former e-mail
> Also I only noticed this in kiwi-ng where my packages are being
> installed even before system packages. Never saw
>
> this behavior with legacy kiwi. Hence thought I will bring it to your
> notice, incase this was not an expected behavior.
Thanks for bringing this up, much appreciated so we can clarify
on the issue and maybe help others too. The compare with the legacy
kiwi at this point is however not easy to judge. From a logic
perspective kiwi-ng and the legacy kiwi did the same. Both tools
runs the package manager and that call performs the install in
some order.
For a comparison however we should see the log file from both
attempts and check if the zypper command is the same. Next also
the repos must be the same because as you know the package metadata
is key for the ordering done by the package manager. If only one
package is different in the e.g requirements setting the complete
install order can change. Last but not least also the zypper
version must be identical for a comparison. This is because the
code that resolves packages and creates the install transaction
in zypper also changes.
Given all this is the same I doubt kiwi-ng and legacy kiwi would
come to different results. This is because in kiwi there is no
code that influences the work done by the package manager.
If your package has been installed late enough in the past it
could be just by pure luck :) Sorry if I say that but the only
safe way to make sure a package installs at the right time is
by setting its requirements correctly
> Thanks for the tips you have provided for accessing local repos within
> buildbox. I will try them out and and let you know how it goes.
That would be great. The boxbuild plugin is relatively new and I
would like to make this as user friendly as ever possible. Any feedback
is therefore very much appreciated.
Thanks