Commit Graph

37 Commits

Author SHA1 Message Date
David Cassany
4f18d2da22 Flag --ignore-repos do not ignore imageonly repos
This commit fixes #395, with it, using --ignore-repos, does not
delete imageonly repositories from the description file. This way
imageonly is prepared to be used in the buildservice even when using
the 'obsrepositories:/' reference style.
2017-06-27 10:02:42 +02:00
Marcus Schäfer
431afc847e
Fixed setup_plymouth_splash
The schema generated get_bootsplash_theme() method returns a list
because it's section content. The return value of the method was
used as a string which caused a runtime error
2017-06-20 18:31:07 +02:00
Marcus Schäfer
219312ec61 Setup plymouth splash in the image prepare process
In case the plymouth-set-default-theme tool can be found in the
image root system and a bootsplash theme is configured in the
XML description, the tool is used to setup the theme configuration
This Fixes #366
2017-06-19 16:13:38 +02:00
David Cassany
62095aeaf3 Improve package/repository signature checking setup
This commit adds repository_gpgcheck and package_gpgcheck attributes
to the repository tag in schema. With this change each repository
can be configured individualy to enable repository signatures check
and/or enable signature package check. The configuration is done at
repository level, thus it is not conflicting with the wide package
manager configuration flag <rpm-signatures-check>.

Fixes #358
2017-06-08 16:40:20 +02:00
Marcus Schäfer
2498ff6ba4
Fixup working dir for editboot scripts
editbootconfig and editbootinstall scripts needs to be
called from within the correct directory to allow access
to the written bootloader config files. For live images
the working directory was set to the wrong place. This
Fixes #353
2017-05-30 17:03:09 +02:00
Neal Gompa
47b799b261 Do not purge the repositories before inserting them
There are no good reasons to be purging the repo directories, especially
when it is common for some distributions (Red Hat/CentOS/Fedora, for example)
to ship repository configuration as packages. Deleting them puts the package
manager in the system into a weird state, so we want to avoid this.
2017-04-13 22:12:41 -04:00
Marcus Schäfer
6cc0b2085d Flake cleanup for unit tests 2017-03-07 13:03:10 +01:00
Marcus Schäfer
3db5a1a606 Add support for repository credentials
The package and solver repository classes did not provide an
interface to deal with repository credentials. This commit
add support for the zypper package manager and the generic
urlopen based download method of the solver class. This
Fixes #246
2017-03-02 15:35:53 +01:00
Marcus Schäfer
09a1b7df94 Cleanup unit test
Use only one instance of context manager for all tests
2016-09-21 17:07:55 +02:00
Marcus Schäfer
f938bf8a83 Create fstab entries for persistent devices
Instead of creating the fstab at boot time, those entries which
are generic and not depending on an unknown device name can be
created as part of the image building process.
2016-09-21 17:07:55 +02:00
David Cassany
330291bf9a Setup tests corrected #124 2016-08-19 17:16:42 +02:00
David Cassany
c0bcce3404 Updated the user schema layout
Now each user item may or may not have a groups attribute. The
groups attribute is a comma separated list of group names. If
present the first group name will be the login or primary group,
if not present, the underlying toolchain will assign the default
login group for that user.
2016-07-27 12:26:50 +02:00
David Cassany
2871ca8150 fixing user schema layout 2016-07-26 16:22:33 +02:00
Marcus Schäfer
2fe5f8ad7f Merge pull request #90 from SUSE/debian-based-distro-support
Debian based distro support
2016-06-10 12:17:55 +02:00
Marcus Schäfer
efa5a1b343
Fixed creation of password hashes
kiwi uses the openssl command for this purpose but did
not strip the newline at the end of the hash output
2016-06-09 11:27:31 +02:00
Marcus Schäfer
e16baa00dd Added PackageManagerApt class
Support installation/removal of deb packages
Related to #37
2016-06-08 20:41:09 +02:00
Bo Maryniuk
06b95b727d Replace 'builtins.open' with patch_open decorator 2016-06-07 17:54:24 +02:00
Marcus Schäfer
06a7472a4f Refactor import_description
split code into more readable parts
2016-05-11 22:49:22 +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
6b1211b8dd Added evaluation of imageincluded repositories
repositories marked as imageinclude needs to be added
permanently to the image. Fixes #56
2016-04-28 16:54:06 +02:00
Marcus Schäfer
6df0282d1c Added support for SELinux file security contexts
Systems using SELinux require the filesystem data to be labeled
according to a security context configuration. kiwi now checks
for the presence of /etc/selinux/targeted/contexts/files/file_contexts
and labels accordingly if it exists. This Fixes #52
2016-04-25 12:50:10 +02:00
Marcus Schäfer
773033eebe
Refactor SystemSetup class
the information about the description_dir is part of the
provided xml_state instance. There is no need to pass that
information along twice
2016-03-24 16:41:47 +01:00
Marcus Schäfer
cc8b18e4ea
Fixed use of derived_description_dir
Only in import_description we need to check for both locations
2016-03-24 16:29:28 +01:00
Marcus Schäfer
d8c8480fd4
Make sure import_description preserves archives 2016-03-24 16:00:48 +01:00
Marcus Schäfer
c4c3c7054f
Fixed 32bit x86 builds
Put it all under the ix86 namespace
2016-03-16 17:31:46 +01: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
612c574148
Continue Refactor into subpackage
system install, update, size, users, result should have their own namespace
2016-03-07 17:33:39 +01:00
Marcus Schäfer
80bb7c5e78 Consolidate all rsync calls into DataSync class 2016-03-07 12:11:15 +01:00
Marcus Schäfer
3a2c3554fc Added the following system setup methods
export_rpm_package_list and export_rpm_package_verification
Used to provide rpm package metadata and verification information
for rpm based image builds
2016-02-21 21:05:24 +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
e9a0b2c198
Added export_modprobe_setup method to SystemSetup
export_modprobe_setup copies the contents of etc/modprobe.d
to a specified target root directory. The method is used to
transfer the modprobe configuration from the system image
to the boot image
2016-02-10 16:26:35 +01:00
Marcus Schäfer
b98908e512 Check if config file exists
Before updating a config file, check if it exists. If
it is not present skip the configuration and print a
warning message
2016-02-07 14:52:12 +01:00
Marcus Schäfer
11ff0f0f0f
Use bash to call config scripts 2016-01-25 21:35:06 +01:00
Marcus Schäfer
15544f9a8c
Allow to build directly from buildservice checkout 2016-01-25 16:13:16 +01:00
Marcus Schäfer
17402c42ba
Added recovery setup 2016-01-05 11:36:10 +01:00
Marcus Schäfer
4a4eb6c646
Refactor source code structure
All files referenced by kiwi should live below the kiwi
namespace and should be referenced by the resource_filename()
method from the pkg_resources
2015-12-17 11:26:49 +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