Closed dcermak closed 5 years ago
@dcermak the issue you are facing is caused by not having a package manager other required data from <preferences>
defined in the config.xml
. This not related to missing the iso type, but caused by missing preferences data. I'd suggest you to not comment the original preferences and include all your <type image="oem"...>
section into the original <preferences>
. Calling with
kiwi-ng --type oem system build --description . --target-dir /tmp/myimage
already enforces KIWI to build the OEM image thanks to --type oem
flag.
Anyway I agree we should catch it and provide better feedback. I am having a look at it.
@davidcassany Yes, I have broken the config.xml
myself by commenting the parts out, i was kind of expecting to get an error.
Thanks for taking a look at that!
Problem description
A
config.xml
that is missing the<preferences><type image="iso" ...>[snip]</type></preferences>
field results in kiwi duming this (not too helpful) exception to the log:The offending
config.xml
is at the end of this issue (unfortunately github really doesn't want me to upload it).Expected behavior
A better error message would be nice, something like
The message would of course depend on what the actual issue is, which I just guess.
Steps to reproduce the behavior
Copy the
config.xml
from the end of the issue into this folder: https://github.com/SUSE/kiwi-descriptions/tree/master/suse/x86_64/suse-leap-15.0-JeOS and run:OS and Software information
Reproducer
config.xml: