Commit Graph

3795 Commits

Author SHA1 Message Date
Marcus Schäfer
d8f00a5a7e
Bump version: 9.21.11 → 9.21.12 2020-09-21 15:54:33 +02:00
Marcus Schäfer
38482cc70c
Merge pull request #1560 from OSInside/set_default_values_for_containers
Get default maintainer and author from image description
2020-09-21 15:50:22 +02:00
Marcus Schäfer
2ef73134ab
Merge pull request #1561 from OSInside/runtime_check_conflicting_types
Added consistency runtime check for the type setup
2020-09-21 15:50:06 +02:00
Marcus Schäfer
8967c29a12
Added consistency runtime check for the type setup
multiple type sections within one preferences section is allowed
in a kiwi image description. However, if multiple type sections
for the same image attribute are configured only the last type
configuration will be ever reachable. The proposed runtime check
in this commit detects this situation and raises an exception
showing the conflicting types including a solution suggestion
which needs to be based on profiles to distinguish between
types of the same image type name.
2020-09-21 15:25:58 +02:00
David Cassany
ac7bed3221
Get default maintainer and author from image description
This commit sets the maintainer and author metadata from the description
section of the image in they are not explicitly specified in
container-config section.

In addition it sets the default container name to `system-container`
instead of `systemContainer` as uppercase letters are not valid for
docker container references.

Fixes #1419
2020-09-21 10:24:31 +02:00
Marcus Schäfer
bcd8aeabf2
Bump version: 9.21.10 → 9.21.11 2020-09-18 16:06:02 +02:00
Marcus Schäfer
1dc3e6ceaa
Update build test directory names
Name the build test directory to follow the changes done
in Issue #1425. There is only one disk image type now, thus
the tests for testing disk images should indicate that
better. Also the tests that build live iso images should
indicate a live iso not only an iso as it could be mixed
up with an install iso
2020-09-18 15:13:08 +02:00
Marcus Schäfer
c2f7d7fade
Consolidate build test names and description
Update build test image names to be more generic and not
bound to a specific version of a distribution. As the tests
are usually based on rolling releases of distros the name
of the test image should be generic. Also adapted the
specification of the test images to describe the focus
of the test if not generic.
2020-09-17 16:40:19 +02:00
Marcus Schäfer
04030cd0ad
Merge pull request #1556 from OSInside/better_appliance_names
Change Appliance names to drop the name LimeJeOS
2020-09-17 15:17:47 +02:00
Vincent Moutoussamy
68698951c4
Change Appliance names to drop the name LimeJeOS
The name LimeJeOS was an invention of the SUSE Studio project.
Since the project does no longer exist, users have no idea
what the name means. Therefore the integration tests as well
as the documentation now changes the image names to provide
more clarity. This Fixes #1544
2020-09-17 12:35:34 +02:00
Marcus Schäfer
d262dc75c8
Bump version: 9.21.9 → 9.21.10 2020-09-16 15:03:39 +02:00
Marcus Schäfer
7506c651c6
Merge pull request #1552 from OSInside/oem_superset_of_vmx
Make oem be a superset of vmx
2020-09-16 15:00:37 +02:00
Marcus Schäfer
a786c704c3
Merge pull request #1554 from OSInside/fix_early_boot_config
Fix the early boot grub.cfg file
2020-09-16 12:57:29 +02:00
Marcus Schäfer
8d2d9c214c
Make oem be a superset of vmx
A vmx image is the same disk as an oem just without the dracut
repart/resize feature. This difference is better handled with
an oemconfig parameter <oem-resize> which allows to switch resize
on or off. The extra image type vmx will be dropped and an XSLT
stylesheet automatically transforms a vmx description to be a
oem image with the resize feature switched off.
This Fixes #1425
2020-09-16 12:56:14 +02:00
David Cassany
cb7b7673e8
Fix the early boot grub.cfg file
This commit makes sure that the early boot configuration files
for grub make use of the proper boot path and omiting the `/boot`
prefix if there is a dedicated boot partition.

Fixes #1553
2020-09-16 11:35:00 +02:00
Marcus Schäfer
09e1c972c7
Merge pull request #1550 from OSInside/add_loadenv_grub_module_by_default
Include loadenv as a default module for grub images
2020-09-15 16:40:44 +02:00
David Cassany
3bb2ab77fb
Include loadenv as a default module for grub images
This commit includes the 'loadenv' module to the list of basic grub
modules. This makes sure the module is included in any grub-mkimage
that KIWI does.

Fixes #1547
2020-09-14 22:07:23 +02:00
Marcus Schäfer
476dd235f9
Merge pull request #1549 from OSInside/change_default_initrd_system_for_oem_type
Make oem image use dracut by default
2020-09-14 16:44:59 +02:00
Marcus Schäfer
54ab18c96c
Make oem image use dracut by default
Before this commit an oem image still had the kiwi initrd_system
set as default. As we are decommission the custom kiwi initrd
concept the default should be changed. It is still possible to
use a custom kiwi initrd but it needs to be explicitly requested
via the initrd_system="kiwi" attribute. In addition to the
changed default a runtime check was introduced that checks
the presence of the boot= attribute which only makes sense
in combination with the kiwi initrd_system. If boot= is
set but initrd_system="kiwi" is not, a message is raised that
explains the situation and either requests setting initrd_system
properly or deleting the boot attribute. The change only
affects people who still use oem with a boot="oemboot/..."
setting and no explicit selection of kiwi as the initrd_system.
As these image type configurations should not be in use anyway
because this is all legacy and announced to go away, we
need to make the next step and enforce a new default in
code. This is related to Issue #1299
2020-09-11 09:49:17 +02:00
Marcus Schäfer
90c0c81f38
Bump version: 9.21.8 → 9.21.9 2020-09-09 12:23:12 +02:00
Marcus Schäfer
d1839f9886
Merge pull request #1546 from OSInside/grub_linuxefi_version_unconditional
Support dynamic linux/linuxefi in any case
2020-09-09 12:14:25 +02:00
Marcus Schäfer
a17b2923e5
Merge pull request #1545 from OSInside/fix_start_sector_on_repart
Explicitly set start sector for msdos repartition
2020-09-09 12:12:32 +02:00
Marcus Schäfer
988404ff9f
Support dynamic linux/linuxefi in any case
Instead of restricting the dynamic linux vs. linuxefi setup
to a specific grub version, support this setup for any version
of grub. This Fixes bsc#1175729 and bsc#1176134
2020-09-08 18:14:15 +02:00
Marcus Schäfer
651610bfca
Merge pull request #1542 from OSInside/doc_efipartsize
Complete documentation of type attributes
2020-09-08 15:13:40 +02:00
Marcus Schäfer
00818f3932
Complete documentation of type attributes
Some type attributes e.g efipartsize and others were not
documented properly. This Fixes #1532
2020-09-08 12:07:06 +02:00
Marcus Schäfer
60e74ba27b
Explicitly set start sector for msdos repartition
When using the sfdisk(>=2.26) tool the start and end of partitions
aligns to block-device I/O limits. This means it's hardware specific
what values sfdisk picks. In a repart operation this is however
dangerous for the start sector which must be the same to prevent
corruption of the data in the partition when kiwi resizes it.
Therefore this commit uses the sfdisk dump command to read the
start sector for deleted partitions and uses that start sector
if the same partition gets recreated such that only the end of
the partition changes and gets aligned properly.
This Fixes #1543
2020-09-08 11:03:06 +02:00
Marcus Schäfer
ce0162e7ca
Merge pull request #1541 from OSInside/strip_package_and_archive_names
Strip package and archive names
2020-09-08 10:39:21 +02:00
David Cassany
13a4e8f0fe
Strip package and archive names
This commit strips the package and archive names string to trim any
trailing or heading space included into the XML.

Fixes #1494
2020-09-07 16:29:56 +02:00
Marcus Schäfer
2cbc7b06f3
Bump version: 9.21.7 → 9.21.8 2020-09-06 09:31:36 +02:00
David Cassany Viladomat
a574d02140
Merge pull request #1539 from OSInside/fix_locale_in_arch_tests
Make use of POSIX locale in Arch Linux integration tests
2020-09-02 17:05:18 +02:00
David Cassany
1beeb8bf8c
Make use of POSIX locale in Arch Linux integration tests
Current Arch Linux (August 2020) has no other locale than POSIX or
C enabled on the system by default. In fact, to enable further locales
in Arch it is required to uncomment the desired ones in `/etc/locale.gen`
and then execute the tool `locale-gen`, after that the selected locales
are eligible for the common system adminstration tools such as
`localectl`.

In KIWI the locale setting happens before running `config.sh` so there
aren't changes to generate any custom locale before applying the value
configured in the description XML file.
2020-09-02 16:23:48 +02:00
David Cassany Viladomat
872274c586
Merge pull request #1535 from OSInside/fix_legacy_custom_initrd_setup
Fixed legacy custom kiwi initrd based image builds
2020-09-01 13:07:06 +02:00
Marcus Schäfer
352865282c
Fixed legacy custom kiwi initrd based image builds
This patch is two fold:

* Image builds that uses the kiwi initrd system did not apply
  the grub config file fixes because the root= parameter is
  an optional information when using a kiwi initrd. However
  this information is required to apply the grub config file
  fixes. Therefore this patch simplifies the kernel commandline
  processing such that it is the same for dracut and custom
  kiwi initrd based systems. This means root= is passed in
  any case.

* The other part of the patch disables the method that strips
  unused libraries from the custom kiwi initrd. It has turned
  out that is safes us almost nothing but could causes corrupted
  initrds missing important libraries e.g libpam which is linked
  against udev and other tools. Therefore libpam is also added
  to the protected strip list
2020-08-27 14:52:45 +02:00
Marcus Schäfer
6faf09cc49
Fixed legacy oem test build
install gawk package in bootstrap to avoid conflict in
tumbleweed between gawk and busybox-gawk
2020-08-27 14:43:46 +02:00
Marcus Schäfer
0cb8c1b729
Merge pull request #1524 from OSInside/add_fedora_rawhide_test
Add fedora rawhide test
2020-08-27 10:33:17 +02:00
David Cassany
1a930d2b69
Remove tuned daemon from CentOS integration test
tuned daemon causes issues at install time with grub configuration.
The build host configuration affects BLS entries generation if tuned
deamon is around. This is likely to cause issues in general and it
actually cause issues in OBS builds (because of a non standard highly
customized build environment).
2020-08-26 10:45:12 +02:00
Marcus Schäfer
4015f4fea2
Merge pull request #1534 from OSInside/sle15_s390_integration_tests
Added s390 SLE15 integration tests
2020-08-26 09:37:00 +02:00
Marcus Schäfer
e19681ea50
Merge pull request #1528 from OSInside/fix_misleading_doc_structure
Fixed doc structure for image types
2020-08-26 09:28:58 +02:00
Marcus Schäfer
863722fb63
Added s390 SLE15 integration tests 2020-08-19 09:51:12 +02:00
13b6df9cd3
Merge pull request #1533 from OSInside/test-image-suse-on-dnf
Added suse integration test built with dnf
2020-08-18 12:26:15 -04:00
Marcus Schäfer
3f7d6164ee
Added suse integration test built with dnf
Use dnf to build a suse image
2020-08-18 17:57:59 +02:00
Marcus Schäfer
49d09e9667
Include box plugin images to build_status
Also show some colors for failed and unresolvable builds
2020-08-13 11:17:33 +02:00
Marcus Schäfer
59f4accb6e
Bump version: 9.21.6 → 9.21.7 2020-08-11 12:33:45 +02:00
Marcus Schäfer
35d16e456a
Fixed archlinux integration test build
The setup of the locale via systemd-firstboot --locale=en_US.UTF-8
failed on archlinux with the error message Locale en_US.UTF-8 is not
installed. This commit sets the locale explicitly
2020-08-11 12:21:08 +02:00
Marcus Schäfer
d58006cd86
Fixed GCE integration test build
nothing provides google-compute-engine-init
2020-08-11 12:11:57 +02:00
Marcus Schäfer
531acc4805
Fixed bootloader grub copy SameFileError exception
Only copy the file if the given source and destination are
not the same file
2020-08-11 11:56:00 +02:00
Marcus Schäfer
575f7788f2
Simplify build_status helper
Instead of a static list with all integration test build names
only maintain a list of integration test build project names
2020-08-11 11:54:50 +02:00
Marcus Schäfer
cf5884ba8d
Bump version: 9.21.5 → 9.21.6 2020-08-11 11:08:56 +02:00
Marcus Schäfer
d10341df3f
Fixed doc structure for image types
The documentation did not differentiate correctly between
the explanation of the image types, their results and the
build host constraints compared to the documentation that
actually describes how to build an image for those types.
This Fixes #1520
2020-08-10 16:26:43 +02:00
Marcus Schäfer
5ec3386afd
Merge pull request #1521 from OSInside/grub_loader_entries_option_handling
Make sure kernel options are respected by grub
2020-08-10 15:11:31 +02:00