Open FroggyFlox opened 10 months ago
@FroggyFlox nice! I think you were referring to this comment earlier this year:
https://github.com/rockstor/rockstor-core/issues/2501#issuecomment-1443921640
Re:
once we dropped our Leap 15.4 profiles.
Noting that this is now the case via: "Remove Leap 15.4 profiles #157" #163
I'm not entirely sure how this will play with our requirement during build. From my initial read I see that the package adds/redefines repos on the host. But when building images our kiwi-ng config provides the repos required for the packages we stiplulate, and we then add those same repositories to our resulting install via the "imageinclude" option in our repo definitions:
<repository type="rpm-md" alias="Leap_15_6" imageinclude="true" profiles="Leap15.6.x86_64,Leap15.6.RaspberryPi4,Leap15.6.ARM64EFI">
<source path="obs://openSUSE:Leap:15.6/standard"/>
</repository>
Mostly anyway. But adding this repos-adding package to the to-be-installed image doesn't make those packages available during the build: where we need those repos to ensure we have access to the packages they contain.
Re:
Mostly anyway.
We add for installer-build-time-only such repos as the following:
<repository type="rpm-md" alias="repo-backports-update" profiles="Leap15.6.x86_64,Leap15.6.RaspberryPi4,Leap15.6.ARM64EFI">
<source path="https://download.opensuse.org/update/leap/15.6/backports/"/>
</repository>
That came about around 15.3/15.4 via a package addition. Adding them in kiwi-ng config for build time only meant our resulting images included the updates they afforded. Making them way more up-to-date.
If my memory is correct, this was brought up by @Hooverdan96 quite some time ago (my apologies for not finding that mention).
The upstream openSUSE repos are now defined in a simple manner using the openSUSE-repos package. This is available in Leap 15.5 and Tumbleweed, so we might want to consider that once we dropped our Leap 15.4 profiles.
This would allow to drastically simplify the definition of repos in our
rockstor.kiwi
file but we may need to verify:opensuse-repos
package would install the upstream repos as a zypper serviceReferences: https://github.com/openSUSE/openSUSE-repos
or from https://en.opensuse.org/SDB:System_upgrade#Note_about_ports_(non_intel_architectures)