Commit Graph

32 Commits

Author SHA1 Message Date
Marcus Schäfer
2411c3352d Added attributes element in volume type 2017-01-20 10:26:14 +01:00
Marcus Schäfer
760c88682f
Update container builder code to new schema layout 2017-01-09 11:30:01 +01:00
Marcus Schäfer
f549b03886 Added DiskFormatVagrantLibVirt class
Allow to build vagrant boxes for the libvirt provider
This Fixes #15
2016-12-12 11:27:19 +01:00
David Cassany
21dfce6595 Parse arch attribute as a comma separated list
This commit ensure that the arch attribute of each package section
is parsed as a comma separated list. This way, as in previous kiwi
versions, each package might be suitable for one or more specified
architectures.
2016-11-24 12:26:04 +01:00
David Cassany Viladomat
71d902e4dd Do not delete all repositories if there aren't repositories to import (#191)
This commit adds a tester method to check if there is any 
repository marked as imageinclude. The method is used to
execute import_repositories_marked_as_imageinclude
method only when it is actually needed.
2016-11-10 15:22:53 +01:00
Marcus Schäfer
f021b16fff
Added handling for rpm-excludedocs for zypper
In zypper zypp.conf can be setup to prevent the installation
of %doc marked items from rpm packages. The <rpm-excludedocs>
section in the kiwi XML description is used to provide this
functionality. So far this feature is only implemented for
zypper. References #133
2016-09-12 15:58:13 +02:00
Marcus Schäfer
9480518178
Fixup get_build_type_vmconfig_entries
Make sure we can rely on a list return even if no
machine section exists at all.
2016-08-23 16:38:19 +02:00
Marcus Schäfer
9ee697f87a
Add evaluation of machine's vmconfig_entry
As part of the machine section it is possible to setup a custom
entry which is stored in the machine configuration file. The
evaluation of such an entry for the vmdk (.vmx) config file
was still missing. This Fixes #122
2016-08-23 12:03:18 +02:00
Marcus Schäfer
08bbe74abc
Added --ignore-repos for build and prepare tasks
The option allows to ignore all repos configured in the
XML description. This allows to specify a complete set
of repositories via the commandline
2016-08-17 16:26:35 +02:00
David Cassany
d659e8a46c Updated get_users and get_user_groups methods
Get_users method has been updated in order to be able to append the
groups attribute when a user is defined in multiple <users> sections in
the description file. Appart from groups, all other user attributes
are ignored if the user was already processed when parsing the description
file.

Get_users_groups method has been also updated so it returns a list of
groups with unique values, keeping the description file order.
2016-08-03 09:25:32 +02:00
David Cassany
b1a16d0357 Updated xml_state
The changes here modify the method get_users in xml_state in order
to provide a simple list of users instead of nested lists. Also a new
method to get the groups for a given user has been included in
xml_state. This is done in order to slim down and facilitate the
code in kiwi/system/setup.py. This way users and groups can be handled
in more natural way.
2016-08-02 17:20:50 +02:00
David Cassany
41ffb048b3 Merge branch 'master' into fix_user_schema_layout 2016-07-26 18:53:30 +02:00
Marcus Schäfer
5078655eb6 Update true/false handling of text nodes
The latest version of generateDS handles <section>true|false</section>
text values in a way that it returns a boolean python type instead
of the text string. With this change the kiwi code has to be adapted
at the level of writing the shell profile which needs the string
value of boolean information
2016-07-26 17:09:13 +02:00
David Cassany
2871ca8150 fixing user schema layout 2016-07-26 16:22:33 +02:00
Marcus Schäfer
1eb337049b Refactor profile for volume setup
Don't use volume names in bash variables. In addition that
removes the name limitations we had for volume names
Related to #39
2016-07-05 15:54:25 +02:00
Marcus Schäfer
d663898788 Fixup copy_boot_delete_packages
if no <packages type="delete"/> section exists in the target
the code does not add the packages to become deleted. This
patch changes the behavior in a way that a new section is
created
2016-06-19 23:27:53 +02:00
Marcus Schäfer
d1e689e00b
Create VMware settings file for vmdk subformat
In order to run or convert the vmdk with VMware products a
settings file is required.
2016-05-11 18:46:02 +02:00
Marcus Schäfer
030550a280
Fixed script/archive lookup
If a script or archive is specified with an absolute path
in the image description, kiwi should not assume this path
to exist below the image description directory but just take
the absolute path as it is. Fixes #70
2016-05-10 13:02:52 +02:00
Marcus Schäfer
24011064b3
Handle fsmountoptions attribute in all builders 2016-04-26 12:40:23 +02:00
Marcus Schäfer
e6cc5bfa09 Move from nose to pytest
nose is no longer maintained, thus we have to move to another
testing system. This commit updates the tox setup and all tests
to use pytest instead of nose.
2016-03-14 12:23:14 +01:00
Marcus Schäfer
40e6308aa9 Port application from python 2.7 to 3.4
For new applications like this kiwi version and its use cases
it is better to base it on a more recent python version
2016-02-17 22:38:38 +01:00
Marcus Schäfer
a1871cfa4b
Support building in buildservice worker
The repo setup inside of a buildservice worker uses a static
path below /usr/src/packages/SOURCES/repos/. We need to adapt
the provided obs uri type to match this criteria
2016-02-02 15:01:02 +01:00
Marcus Schäfer
e95eab38fa
Added support for using internal build service
An option --obs-repo-internal was added
2016-01-25 17:09:19 +01:00
Marcus Schäfer
e40395e99f Platform fixes for XML tests 2016-01-25 09:49:27 +01:00
Marcus Schäfer
2267023dbd
Refactor user/groups setup
Provide an easier to travers data type in xml_state for the
user and groups. The get_users() method returns a list of
tuples which assigns each user list the group name and id
it belongs to
2016-01-15 15:48:52 +01:00
Marcus Schäfer
ecfa3136b5
pep8 fixes 2016-01-12 23:08:51 +01:00
Marcus Schäfer
1a15ee0ba6
Added warning message if pxedeploy section is used
At the moment there is no class to build the pxe client config
file from information provided with the optional pxedeploy
section. However this is not fatal to the build because the file
could be created manually too. Thus a warning message is shown
which will go away when the pxe client config file creation
has been ported
2016-01-05 12:24:03 +01:00
Marcus Schäfer
3ef9bcbff2
cleanup test data to be consistent 2016-01-05 11:46:43 +01:00
Marcus Schäfer
c081e364e5 Added DiskFormatGce class implementation 2016-01-04 13:15:40 +01:00
Marcus Schäfer
87d7273c86
Added custom argument handling for disk formats 2016-01-01 21:03:47 +01:00
Marcus Schäfer
a04d34e145
Return sorted lists for packages/archives 2015-12-21 09:53:01 +01:00
Marcus Schäfer
09daca60c0
KIWI - appliance builder next generation
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi
2015-12-05 16:17:10 +01:00