[opensuse-packaging] Building live CDs via KIWI
All, Attempting to do these builds I encountered: "KiwiCommandNotFound: Command "gfxboot" not found in the environment" I couldn't find a solution online, so for those coming behind me: You have to configure your overall project (not the package) to allow KIWI based live CD builds. I was working in the WebUI for build.opensuse.org. I had to create a custom repo named "images" in the meta tab: Add: <repository name="images"> <path project="openSUSE:Leap:15.1:Update" repository="standard"/> <path project="openSUSE:Leap:15.1" repository="standard"/> <arch>x86_64</arch> <arch>local</arch> </repository> Then in the "Project Config" tab I have: ==================================== %if "%_repository" == "images" Type: kiwi Repotype: none Patterntype: none %endif Preinstall: syslinux ===================================== I don't know which parts of that are critical, but that is allowing me to build a KIWI based openSUSE 15.1 live CD. Greg -- Greg Freemyer Advances are made by answering questions. Discoveries are made by questioning answers. — Bernard Haisch -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi Greg, Greg Freemyer <greg.freemyer@gmail.com> writes:
All,
Attempting to do these builds I encountered: "KiwiCommandNotFound: Command "gfxboot" not found in the environment"
These kind of error messages indicate that there is nothing called `gfxboot` in $PATH, i.e. it's not installed. If you're building the image locally, then you just have to ensure that the package is installed on your system. When you are building on OBS, you have to tell OBS to put the package into your buildroot. You can achieve that either via adding the following to the project configuration: Preinstall: gfxboot or by simply adding the package to the list of required packages to the .kiwi image description.
I couldn't find a solution online, so for those coming behind me:
Kiwi has some instructions on how to build Live CD images (https://osinside.github.io/kiwi/building/build_live_iso.html) and generic OBS instructions (https://osinside.github.io/kiwi/building/build_in_buildservice.html). Would you be willing to take a look at them and maybe share some comments how they could be improved? That would help tremendously, as it is relatively hard to write a user facing documentation as a developer that knows all the intricacies of the software already and is everything but a beginner.
You have to configure your overall project (not the package) to allow KIWI based live CD builds.
I was working in the WebUI for build.opensuse.org. I had to create a custom repo named "images" in the meta tab:
Add: <repository name="images"> <path project="openSUSE:Leap:15.1:Update" repository="standard"/> <path project="openSUSE:Leap:15.1" repository="standard"/> <arch>x86_64</arch> <arch>local</arch> </repository>
Then in the "Project Config" tab I have: ==================================== %if "%_repository" == "images" Type: kiwi Repotype: none Patterntype: none %endif
Preinstall: syslinux
In theory a `Preinstall: gfxboot` should be sufficient as you don't really need syslinux.
=====================================
I don't know which parts of that are critical, but that is allowing me to build a KIWI based openSUSE 15.1 live CD.
JFYI you can also take a look at the official live CD image recipes that live here: https://build.opensuse.org/project/show/Virtualization:Appliances:Images:ope... Hope this helps, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nuremberg Germany (HRB 36809, AG Nürnberg) Managing Director: Felix Imendörffer
participants (2)
-
Dan Čermák
-
Greg Freemyer