Commit Graph

2836 Commits

Author SHA1 Message Date
Marcus Schäfer
2cd080d0bb
Follow up fix for zypper compat link
Move the code handling the compat setup of the rpm database
to the correct method of the repository API. Call the
import of the signing keys only if there are signing
keys
2019-03-06 16:25:01 +01:00
Marcus Schäfer
7bb60a0a5b
Merge pull request #985 from SUSE/fix_zypper_rpmdb_linkage
Fix zypper rpmdb linkage
2019-03-06 14:35:31 +01:00
Marcus Schäfer
5a4c9e9840
Merge pull request #986 from SUSE/fix_suseRemoveYaST
Fix suseRemoveYaST to work with set -e
2019-03-06 14:19:20 +01:00
Dan Čermák
fde6d86923
Fix suseRemoveYaST to work with set -e
When the config.sh is invoked with set -e then suseRemoveYaST causes the whole
script to fail when no yast packages are present. The problem is that `grep
yast` returns 1 in that case.
=> Explicitly ignore the return value of grep

Furthermore, if no YaST packages were found, we don't want to invoke rpm, as
that would fail too (as it is called without any parameters).
2019-03-06 14:11:51 +01:00
Marcus Schäfer
d70df02aa3
Care for update alternatives on rpmdb move
In set_database_to_image_path we also have to care for the
move of the alternatives path to the new rpmdb location
2019-03-06 12:09:15 +01:00
Marcus Schäfer
d92606e46f
Fixup zypper/suse link to rpm database
The compat code generating the /var/lib/rpm link was only
effective if a signing key was specified, however it should
be effective in any case
2019-03-06 11:45:02 +01:00
Marcus Schäfer
b20545897b
Merge pull request #982 from SUSE/fix_unit_test_run_for_cdrtools
Run cdrtools based unit tests on demand
2019-03-06 10:12:50 +01:00
Marcus Schäfer
b8b96821da
Merge pull request #947 from dcermak/virtualbox_vagrant
Add support for virtualbox vagrant boxes
2019-03-05 15:59:42 +01:00
Marcus Schäfer
5112ec7121
Run cdrtools based unit tests on demand
Only if the underlaying system provides legacy cdrtools,
run the unit tests which actually reads the test data iso
using those tools.
2019-03-05 15:54:25 +01:00
Dan Čermák
2b17684d2c
Add support to build vagrant boxes with the Virtualbox provider
This commits adds initial support to build Vagrant boxes with the Virtualbox
provider.
- The attribute 'provider' of the option <vagrantconfig> now supports the option
  "virtualbox".
- A new boolean attribute 'virtualbox_guest_additions_present' was added to
  <vagrantconfig>. When set to true, KIWI will assume that guest additions have
  been installed into the base image and configure the shared folders to use
  vboxfs, otherwise rsync will be used.

This fixes #532 (https://github.com/SUSE/kiwi/issues/532).
2019-03-05 15:33:18 +01:00
Marcus Schäfer
f2b87d09d4
Merge pull request #978 from b1-systems/use-dracut-networking
pxe: use dracut's network code, drop own setup
2019-03-05 13:57:22 +01:00
Marcus Schäfer
d38658bfcc
Merge pull request #977 from SUSE/better_error_messages
Improve error messages
2019-03-05 10:24:50 +01:00
Marcus Schäfer
acf67419af
Improve error messages
The error messages for running a build against an undefined
image definition as well as the error message to explain why
the imageinclude attribute can only be used with public repos
has been improved by suggestions from J. Mixer
2019-03-04 10:07:04 +01:00
Stefan Seyfried
d9ab8bce6a pxe: use dracut's network code, drop own setup 2019-03-04 09:46:18 +01:00
Marcus Schäfer
4a1776acad
Merge pull request #976 from SUSE/request-dnf-everywhere
Ensure DNF is installed for kiwi itself and the test CentOS 7 appliance
2019-03-01 15:28:06 +01:00
f0392f4b16 Ensure DNF is installed for kiwi itself and the test CentOS 7 appliance
In e33f53aa45, we switched to DNF when requesting YUM.
This now means we need to ensure DNF is installed for images where
we previously used YUM for that.
2019-03-01 08:48:44 -05:00
Marcus Schäfer
41e8dbc44e
Merge pull request #973 from Conan-Kudo/retire-yum
Rework package manager selection to use DNF when YUM is requested
2019-03-01 11:23:15 +01:00
e33f53aa45 Rework package manager selection to use DNF when YUM is requested
YUM v3 is no longer developed, having been superseded by DNF for
several years. With DNF now available as a usable package manager
in Red Hat Enterprise Linux 7 through the Extras channel and
SUSE Linux Enterprise 15 through PackageHub, there is no reason for
keeping support for YUM v3 around.

We are keeping support for requesting YUM because in Red Hat Enterprise
Linux 7, DNF is referred to as "YUM v4", and it is simply referred to
as "YUM" in Red Hat Enterprise Linux 8. To avoid confusion from people,
we're just going to leave it in place as an alias to the DNF package
manager.

As for why this is happening now, Fedora is retiring YUM v3 in
Fedora 31, so we might as well get it over with and cut over now.

Reference: https://fedoraproject.org/wiki/Changes/Retire_YUM_3
2019-02-28 15:09:21 -05:00
Marcus Schäfer
fc63e6fa97
Merge pull request #975 from dcermak/tox_python_37
Add environment for running the unit tests with Python 3.7 to tox
2019-02-28 15:51:02 +01:00
Dan Čermák
8dcb74ecd8
Add environment for running the unit tests with Python 3.7 to tox
Python 3.7 does only appear to be available on Ubuntu Xenial with sudo enabled
2019-02-28 15:26:10 +01:00
Marcus Schäfer
6c0dacd452
GitLab CI integration
Run tox targets on demand. With GitLab CI selected containers
are small but also limited in their scope.
2019-02-28 11:13:32 +01:00
Marcus Schäfer
c4f0855d1f
Fixed iso tools unit test
Test was not environment independent and behaved differently
compared to which iso tool change is installed.
2019-02-28 11:11:58 +01:00
Marcus Schäfer
1390b855e2
GitLab CI integration
Select 3.6 image to run the test
2019-02-28 10:53:39 +01:00
Marcus Schäfer
81e13d149b
Fixed shellcheck issue on kiwi-partitions-lib.sh
Fixup SC2046: Quote this to prevent word splitting
2019-02-28 10:44:08 +01:00
Marcus Schäfer
626b29714d
GitLab CI integration
Not so easy to get pip running there. Try standard binary
name of after pip ugrade to install the rest of the chain
2019-02-28 10:34:43 +01:00
Marcus Schäfer
23fc87e4eb
GitLab CI integration
No alternative naming for py3 commands
2019-02-28 10:31:30 +01:00
Marcus Schäfer
bc275f7425
GitLab CI integration
Fixed install of tox on the runner
2019-02-28 10:26:19 +01:00
Marcus Schäfer
aff9b96603
GitLab CI integration
Require tox to be installed on the runner
2019-02-28 10:23:15 +01:00
Marcus Schäfer
0e66b7ade4
GitLab CI integration
pip not installed by default on the runner
2019-02-28 10:19:58 +01:00
Marcus Schäfer
1c3361fa2f
Looks like Travis will go away
Try moving CI integration to GitLab
2019-02-28 10:16:07 +01:00
Marcus Schäfer
06e35c26ac
Merge pull request #971 from SUSE/shasum_compatible_output_format
Write sha256sum --check compatible shasum format
2019-02-28 08:14:07 +01:00
Marcus Schäfer
3c55023c9e
Write sha256sum --check compatible shasum format
Change the output format of the bundler shasum file to be
compatible with a 'sha256sum --check' call.
This fixes bsc#1127173
2019-02-27 17:33:53 +01:00
Marcus Schäfer
7014758de7
Move azure integration test build to Factory repos 2019-02-27 16:00:13 +01:00
Marcus Schäfer
1aa41c6833
Fixed package list of azure integration test 2019-02-27 15:52:57 +01:00
Marcus Schäfer
0f4199df2f
Fixed repo setup from azure integration test 2019-02-27 15:50:47 +01:00
Marcus Schäfer
311efd6e02
Bump version: 9.17.22 → 9.17.23 2019-02-27 15:05:40 +01:00
Marcus Schäfer
6e03102550
Merge pull request #965 from SUSE/fix_import_of_signing_keys
Fixed import of signing keys
2019-02-27 15:05:18 +01:00
Marcus Schäfer
541cf9c3d1
Fixed import of signing keys
In reference to bsc#1112357 it was required to add the compat
symlink /var/lib/rpm such that zypper can read the signing
keys. Unfortunately zypper does not use the configured rpmdb
from the rpm macro setup.
2019-02-27 14:24:55 +01:00
Marcus Schäfer
80bc4a64a6
Merge pull request #968 from dcermak/fix_xdist_py2_7
Allow xdist to run the tests in parallel for the Python 2.7 env
2019-02-27 08:55:07 +01:00
Dan Čermák
d55eda8a56
Allow xdist to run the tests in parallel for the Python 2.7 env
This reverts an accidental change that was introduced with
942ed7a8ee, which removed the {posargs} from
tox.ini for the python 2.7 environment.
2019-02-26 17:35:24 +01:00
Marcus Schäfer
e4a22c37d2
Merge pull request #967 from SUSE/add_description_section_accessor
Added get_description method to XMLState
2019-02-26 15:54:02 +01:00
Marcus Schäfer
ed6c11f7d6
Added get_description method to XMLState
In preparation to access the contents of the <description>
section this pull requests adds a simple method to read
the contents.
2019-02-26 15:20:21 +01:00
Marcus Schäfer
a3b99f9364
Merge pull request #964 from b1-systems/install_bootopts_passthrough
add rd.kiwi.install.pass.bootparam boot parameter
2019-02-26 12:42:54 +01:00
Marcus Schäfer
d694e9cb20
Merge pull request #966 from SUSE/fix_strip_contents_s390
Update tools from strip list for oemboot
2019-02-26 12:41:16 +01:00
Marcus Schäfer
9ed77f1d8d
Update tools from strip list for oemboot
For legacy oemboot kiwi descriptions the strip list for
tools to keep in the initrd is still active. On s390
required tools for dasd_configure were missing and got
added by this commit. This Fixes #963
2019-02-25 16:43:17 +01:00
Stefan Seyfried
12e57bb461 add rd.kiwi.install.pass.bootparam boot parameter
if this boolean is set, most boot parameters are passed on
to the kexec kernel on OEM image deployments
2019-02-25 16:24:44 +01:00
Marcus Schäfer
3cccf0a1d7
Bump version: 9.17.21 → 9.17.22 2019-02-23 20:40:00 +01:00
Marcus Schäfer
162b09d122
Merge pull request #962 from SUSE/fix_multipath
Followup fix for disk detection from root device
2019-02-23 20:39:25 +01:00
Marcus Schäfer
524d482d08
Merge pull request #961 from SUSE/fix_gpt_relocation
Fixed relocation of GPT
2019-02-23 20:39:11 +01:00
Marcus Schäfer
daf90b9ed4
Followup fix for disk detection from root device
No matter if one ore more devices are used in a multipath map,
if the root device is managed by multipath kiwi has to use the
mapped device for all operations, otherwise we run into busy
or blocked state inside of the initrd operations. This is
related to Issue #954 and bsc#1126283 and bsc#1126318
2019-02-23 20:22:06 +01:00