Giter VIP home page Giter VIP logo

Comments (3)

Hooverdan96 avatar Hooverdan96 commented on August 16, 2024 2

Based on a side conversation with @phillxnet and @FroggyFlox, I am adding additional observations that I encountered during the build process, which I faced while testing the ability to build Rockstor on OpenSUSE Tumbleweed, which proves to be tricky due to it being a rolling release that continues to evolve. Hence, having the build instructions as self-contained as possible should insulate from some of the TW quirks, especially during this transitional phase of gradually getting to more current releases of the underlying building blocks like python 3.x, django, etc.
It appears that the kiwi packages automatically pull in busybox packages for its own dependencies if there is nothing explicitly specified beforehand. It doesn’t matter whether the non-busybox versions are installed on the host system (this probably also applies to using the buildbox approach, though I have not verified that).
After reading some more in the kiwi docs and looking at the gzip issue mentioned above, I needed to find a place in the kiwi install where I “pre-emptively” install gawk, grep and xz.
Adding it to the bootstrap packages seems to do the trick, and kiwi does not reach for busybox as its source for these. This means in the kiwi file these entries could be added:

Bootstrap package section:

image

<packages type="bootstrap">
    <package name="ca-certificates"/>
    <!-- https://github.com/OSInside/kiwi/issues/776#issuecomment-403724943 -->
    <package name="ca-certificates-cacert"/>
    <package name="ca-certificates-mozilla"/>
    <package name="cracklib-dict-full"/>
    <package name="filesystem"/>
    <package name="gawk"/>
    <package name="glibc-locale"/>  <!-- possbily glibc-locale-base-->
    <package name="grep"/>
    <package name="openSUSE-release"/>  <!-- /etc/os-release etc -->
    <package name="udev"/>
    <package name="xz"/>
</packages>

For Tumbleweed specific conversations I want to leave behind this information as well:
Changed this from dracut to kiwi, thinking it might make a difference (and since in the kiwi docs it implies when using kiwi it essentially uses dracut anyway). It initially didn’t make a difference of course. Only when adjusting the bootstrap packages (as stated above) the behavior changed (i.e. not using busybox-based installations), but I forgot to change it back, and it still worked.
image

For anybody trying to (as of today) replicate this with Tumbleweed: there is currently no TW specific Rockstor build in the corresponding repository.
Until that changes (once more urgent issues have been addressed in the Leap 15.x space) pointing to the most recent (in this case 15.4) in the TW profile of the rockstor.kiwi file will allow to successfully build.

image

from rockstor-installer.

Hooverdan96 avatar Hooverdan96 commented on August 16, 2024 1

Ah, I see. So I got lucky when I changed this, that at the time, it didn't have any further implications :). I'd say, stick with the tried and true setting of dracut for now ...

from rockstor-installer.

phillxnet avatar phillxnet commented on August 16, 2024

@Hooverdan96 Re:

Changed this from dracut to kiwi, thinking it might make a difference (and since in the kiwi docs it implies when using kiwi it essentially uses dracut anyway).

From: https://osinside.github.io/kiwi/concept_and_workflow/customize_the_boot_process.html
it is to be mandatory, if we use "kiwi" here to provide:
<type ... boot="netboot/suse-tumbleweed"/>
or the like. I'm not sure I'm happy making these changes just yet:

Such boot descriptions for the OEM and PXE types are currently still provided by the KIWI NG packages but will be moved into its own repository and package soon.

So all in it may be a step too far just yet. Still looking into our options here.

from rockstor-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.