kiwi example suse-live-iso

I’m trying kiwi out to make a live cd. I plan on trying it first in virtualbox before actually burning it to a cd. I’m having errors on preparing it using the kiwi-doc package’s /usr/share/doc/packages/kiwi/examples/suse12.1/suse-live-iso. The config.xml has a opensusePattern name=“default” which cannot be found once kiwi starts installing packages into it’s image. It finds “kde4” just fine. I removed the pattern name “default” entry and I’ve had problems with it timing out for retrieving packages so I also took out the internet repositories and am doing it from just my 12.1 dvd media.

So two things.

  1. how do I prevent kiwi from aborting if it times out on retrieving a package ( or if there are dependency issues )
  2. how do I get it to recognize the default pattern, or what packages should I manually enter that are in the “default” pattern?

Thank you.

**config.xml
**

<?xml version="1.0" encoding="utf-8"?>

<image schemaversion="5.3" name="suse-12.1-live">
    <description type="system">
        <author>Marcus Schäfer</author>
        <contact>ms@novell.com</contact>
        <specification>openSUSE 12.1 Live system for CD/DVD and USB Stick</specification>
    </description>
    <preferences>
        <type image="iso" primary="true" boot="isoboot/suse-12.1" hybrid="true" flags="clic"/>
        <version>2.5.2</version>
        <packagemanager>zypper</packagemanager>
        <rpm-check-signatures>false</rpm-check-signatures>
        <rpm-force>true</rpm-force>
        <locale>en_US</locale>
        <keytable>us.map.gz</keytable>
    </preferences>
    <users group="root">
        <user pwd="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root"/>
    </users>
    <users group="users">
        <user pwd="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/home/tux" name="tux"/>
    </users>
    <repository type="yast2">
        <source path="/media/openSUSE-DVD-i586-Build0039"/>
    </repository>
    
    <packages type="image" patternType="plusRecommended">
        <package name="bootsplash-branding-openSUSE" bootinclude="true" bootdelete="true"/>
        <package name="gfxboot-branding-openSUSE" bootinclude="true" bootdelete="true"/>
        <package name="kernel-default"/>
        <package name="ifplugd"/>
        <package name="vim"/>
        <package name="yast2-firstboot"/>
        
        <opensusePattern name="kde4"/>
    </packages>
    <packages type="bootstrap">
        <package name="filesystem"/>
        <package name="glibc-locale"/>
    </packages>

</image>

well, still no answers. Just thought I would jot down some things I’ve learned since beginning my kiwi adventures.
There is a gui to kiwi in the yast2-product-creator package called image-creator (shows up in yast misc, once installed)

I didn’t like the firstboot thing so I deleted <package name=“yast2-firstboot”/> and you also have to delete the firstboot.xml

Also, zypper offers some options to download packages to the hard drive. what I did was
zypper --pkg-cache-dir /home/name/kiwi/packages --disable-system-resolvables install --download-only PACKAGES.

where PACKAGES is a space delimited line of packages you want to get.
–pkg-cache-dir sets the directory to download to
–disable-system-resolvables makes zypper act like you don’t have any of the packages or dependencies in order to have a directory with all the dependencies.
–download-only makes zypper just download the files and not install them

zypper also tells you all of the valid patterns you can use with the command
zypper patterns

Then in your config.xml file you want to add <repository type=“rpm-dir”> and then the source is the path ~/kiwi/packages or whatever you used to download the packages to.
I already added my dvd as a type=yast2 repository and the path was copied from file manager under /media/name of dvd

and then, obviously add the package names to the config.xml <package name=“package_whatever”/>

/usr/share/doc/packages/kiwi/kiwi.pdf has a bit of information.

Still wondering how I can alter it so I don’t have to download rpms to the hard drive first. If there was some way to get zypper to ask if I want to retry instead of it automatically aborting and saying there was no connection. And don’t get me started on if the dependencies don’t work out. It just quits. After installing all those programs it then just gives up. rrrrr.
oh well, kiwi is an invaluable tool none-the-less.

On 2012-01-17 00:26, cw9000 wrote:
> well, still no answers. Just thought I would jot down some things I’ve
> learned since beginning my kiwi adventures.

I have not used kiwi, but perhaps you might be interested in suse-studio,
it is built around kiwi, I understand.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

as far as I can tell suse-studio just writes the image to a device, but doesn’t create any images. Also, for some reason I can’t get suse-studio to open up.
I tried reinstalling it, but it still doesn’t open. I know I had it opened before, what gives?
But thanks anyway.

On 2012-01-17 18:46, cw9000 wrote:
>
> as far as I can tell suse-studio just writes the image to a device, but
> doesn’t create any images. Also, for some reason I can’t get
> suse-studio to open up.

suse-studio is a site, not a piece of software. Or if it is, I’m referring
to the site.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)