4d Add any optional configuration or scripts you need for your particular image
as described under Section 13.1, "Understanding the KIWI Configuration"
(page 174).
5 Check whether config.xml is still well-formed XML to avoid parser problems
when running the actual image building commands:
xmllint --noout /var/lib/SLEPOS/system/graphical-default/config.xml
If this command does not return any messages at all, the XML is well-formed
and you can proceed with creating the image. If it returns error messages, fix the
errors it returned and retry until no more errors are found.
6 Perform the actual image preparation, but make sure the following requirements
are met, before you execute the kiwi command:
• A chroot directory under /var/lib/SLEPOS/system/chroot/
graphical-default must not exist before you start preparing the image.
Remove any remainders of earlier image builds.
WARNING: Directories Mounted with the --bind Option
When removing /var/lib/SLEPOS/system/chroot/
graphical-default make sure that no bind mount is done in
that directory. Those may be left over, if a previous preparing process
aborts unexpectedly. To check for such leftovers, run the command:
mount | grep bind
If you have any bind mount result inside that directory, first unmount
this with the command umount <target-directory>.
• Zypper or YaST must not run while you invoke the image preparation and
build commands. These commands make use of zypper and would be blocked
by other processes requesting the same services.
cd /var/lib/SLEPOS/system/
kiwi --prepare ./graphical-default --root ./chroot/graphical-default
Building Images with KIWI
179
Need help?
Do you have a question about the LINUX ENTERPRISE 11 - SUBSCRIPTION MANAGEMENT TOOL GUIDE 10-02-2009 and is the answer not in the manual?
Questions and answers