Commit Graph

2983 Commits

Author SHA1 Message Date
Marcus Schäfer
eaaf8571f7
Merge pull request #1058 from SUSE/obs_docs
Rework documentation about building on OBS
2019-04-22 21:51:31 +02:00
Marcus Schäfer
cc603c08ab
Merge pull request #1047 from SUSE/fix_macros_for_boostrap
Update bootstrap macro management
2019-04-22 21:48:30 +02:00
Marcus Schäfer
72f9ee8e15
Merge pull request #1057 from SUSE/openstack_integration_test
Added integration test guest image for OpenStack
2019-04-22 21:44:38 +02:00
Tom Schraitle
30ac2f4531 Update doc/source/building/build_in_buildservice.rst
Co-Authored-By: dcermak <45594031+dcermak@users.noreply.github.com>
2019-04-16 17:54:29 +02:00
David Cassany
4c3945c4d1
Update bootstrap macro management
This commit extends the bootstrap macro management to also consider
the case where image was already bootstrap. Note this is a common case
for building derived container images and also the situation when
`--allow-existing-root` flag is in use.
2019-04-16 14:40:57 +02:00
Dan Čermák
5bc3dbcdd0
Rework documentation about building on OBS 2019-04-16 13:27:42 +02:00
Marcus Schäfer
51330599f8
Added integration test guest image for OpenStack 2019-04-15 10:41:52 +02:00
Marcus Schäfer
89a830ccf3
Merge pull request #1056 from SUSE/plymouth_theme_update
Update suse integration tests per Factory changes
2019-04-14 20:49:40 +02:00
Marcus Schäfer
a7910afd73
Update suse integration tests per Factory changes
The way plymouth themes are provided has changed on suse.
The package plymouth-branding-openSUSE is no longer providing
the theme named openSUSE. In fact the plan is to switch to
the upstream bgrt theme which is provided in another package.
This commit adapts to the changes in the distribution
2019-04-14 19:20:29 +02:00
Marcus Schäfer
3b51e49ebf
Bump version: 9.17.36 → 9.17.37 2019-04-11 09:38:37 +02:00
Marcus Schäfer
0164da246a
Merge pull request #1052 from SUSE/fix_rpm_requires_dev_access
Fix rpm metadata creation
2019-04-11 09:38:20 +02:00
Marcus Schäfer
7b29751b92
Fix rpm metadata creation
There are rpm versions that require access to /dev and fail
with the error message 'Failed to initialize NSS library'
For details see: https://bugs.centos.org/view.php?id=14767
Due to the rpm location checkup fix from Issue #1037 this
change impacts builds for distributions that uses an rpm
version with the above behavior (e.g CentOS) and fails as
consequence of the rpm call error. This commit fixes this
in a way that we make sure the host /dev is available at
the time of the call.
2019-04-11 09:34:28 +02:00
Marcus Schäfer
0b2753961d
Bump version: 9.17.35 → 9.17.36 2019-04-10 18:11:58 +02:00
Marcus Schäfer
b9348f4289
Merge pull request #1048 from SUSE/add_custom_options_for_curl
Adding custom curl options for dracut-kiwi-lib module
2019-04-10 17:35:55 +02:00
David Cassany
77b3089791
Fix xml syntax on documentation example 2019-04-10 17:13:58 +02:00
David Cassany
50fb671122
Add custom curl options docs 2019-04-10 12:18:57 +02:00
Marcus Schäfer
6a3b576e6a
Merge pull request #1049 from SUSE/fixup_runtime_test_matrix
Fixup runtime test matrix
2019-04-09 15:43:05 +02:00
Marcus Schäfer
7760b2ddfa
Refactor handling of runtime tests check dict
Consolidate check list into CliTask base class such that we
can avoid duplication of runtime check dicts. Only runtime
tests that require stateful information according to the
commandline call are handled directly in the task code
2019-04-09 14:53:07 +02:00
Marcus Schäfer
720d34ddd8
Delete check_grub_efi_installed_for_efi_firmware
The motivation is nice to check if the required grub module
package is part of the package list if the efi firmware is
requested, but as long as there is no distribution wide
standard for packaging grub this check will cause more trouble
than it is of help. Currently it failed for the arm architecture
and the grub2-arm64-efi package. We decided to prevent checking
against static lists and dropped this runtime check. Missing
grub modules will be recognized at the grub stage when we
search for them.
2019-04-09 12:08:33 +02:00
David Cassany
2fe5d0b15b
Adding custom curl options for dracut-kiwi-lib module
This commit parses the `rd.kiwi.install.pxe.curl_options` argument from
the kernel command line to read and use curl options for the
`fetch_file` function of `kiwi-net-lib.sh` utility. Options are passed
as comma separated values.

Fixes #891
2019-04-09 11:31:18 +02:00
Marcus Schäfer
18bb65b3b0
Merge pull request #1046 from SUSE/obsolete_pxedeploy
Deleted pxedeploy section
2019-04-08 10:28:10 +02:00
Marcus Schäfer
4a21fcfb05
Auto upgrade all image descriptions to v7.0 schema 2019-04-05 14:28:55 +02:00
Marcus Schäfer
c148d661b9
Deleted pxedeploy section
There is no further demand in the client config creation for the
legacy netboot code. Customers using the netboot initrd already
create the client config.<MAC> file manually or through another
system. With the next generation kiwi we also recommend the disk
based network deployment using the dracut capabilities and marked
the netboot code as still supported but on the legacy stream.
Along with the deletion in the schema the following changes
were also done:

* Deleted use of pxedeploy section in implementation
* Increase schema version to v7.0
* Update documentation on schema version update
* Added xsl stylesheet conversion from v6.9 to v7.0
  Automatic schema version upgrade from v6.9 to v7.0 deletes
  the pxedeploy section from any type specification

This Fixes #19
2019-04-05 14:26:54 +02:00
Marcus Schäfer
121f21ce9d
Merge pull request #1045 from SUSE/fix_filesystem_labels
Fix filesystem labels
2019-04-05 10:41:20 +02:00
David Cassany
bea56e4700
Fix filesystem labels
If multiple volumes were defined they were not properly labeled. This
commit fixes a miss use of custom_args dictonary by the filesystem
base class. This class was modifying the given custom_args that is
passed by reference, thus modifiyng the custom_args instance of the
caller. This issue was causing to propagate the modified
create_options of a filesystem across all the volumes, causing all
volumes to be labelled as ROOT. With this commit Filesystem class
performs a deepcopy of the custom_args dictionary to limit the scope of
any change inside each Filesystem instance.

Fixes #1044
2019-04-04 15:06:22 +02:00
David Cassany
f9e81c897c
Bump version: 9.17.34 → 9.17.35 2019-04-04 13:24:21 +02:00
Marcus Schäfer
173f37ff81
Merge pull request #1043 from SUSE/fix_fsck_umask_on_dracut_modules
Fix regression on kiwi-repart dracut module
2019-04-04 09:59:22 +02:00
David Cassany
024318a9c8
Fix regression on kiwi-repart dracut module
There was a regression introduced in #1035 (048b5c3e). We mask
systemd-fsck-root.service during the repart, but we are not always
unmasking it. If the repart is not possible the service is masked but
not unmasked, which causes the boot to fail.

With this commit after masking the fsck service we trap EXIT and run the
unmask command on script exit. This way we ensure the unmask command is
always executed.
2019-04-03 15:41:50 +02:00
Marcus Schäfer
4c9037e12e
Merge pull request #1041 from SUSE/disable_runtime_checks
Add the possibility to disable runtime checks
2019-04-02 17:03:36 +02:00
Marcus Schäfer
d0f4b2c1ca
Doc fix for lex literal_block as xml 2019-04-02 16:24:16 +02:00
David Cassany
c21570ac7b
Add the possibility to disable runtime checks
This commit adds runtime configuration parameters to disable the runtime
checks. This is specially handy if someone does not want to use the kiwi
dracut modules and provide custom ones instead. In orde disable some
runtime check consider a runtime config yaml like:

runtime_checks:
    - disable:
        - check_dracut_module_for_oem_install_in_package_list
        - check_dracut_module_for_live_iso_in_package_list

This commit fixes #893
2019-04-02 16:00:03 +02:00
Marcus Schäfer
a958af11c6
Merge pull request #1042 from SUSE/qcow_store_uncompressed
Update compression flag for qcow2 format
2019-04-02 15:47:56 +02:00
Marcus Schäfer
0296808e24
Update compression flag for qcow2 format
In case of a qcow2 format we store the result uncompressed
Since the format conversion only takes the real bytes into
account such that the sparseness of the raw disk will not
result in the output format and can be taken one by one
This Fixes bsc#1128146

In addition the commit includes a refactoring for the
evaluation of the compress flag in the runtime config.
Instead of the global overwrite, the flag gets evaluated
individually at the time the result metadata is created
2019-04-02 11:24:35 +02:00
Marcus Schäfer
197d231ac1
Merge pull request #1040 from SUSE/robust_rpm_check
Fixup has_rpm method from RpmDataBase class
2019-04-01 15:15:08 +02:00
Marcus Schäfer
840a872507
Fixup has_rpm method from RpmDataBase class
The method checked for the presence of /usr/bin/rpm. But
that binary is also provided by another toolkit named
busybox. Thus to check if the rpm we are aiming for is
present the check has been modified to look for /usr/bin/rpmdb
which is exclusively provided by rpm only. This Fixes #1037
2019-04-01 14:52:33 +02:00
Marcus Schäfer
d679e12cc7
Merge pull request #1038 from SUSE/metadata_no_rpm
Fixed creation of image metadata files
2019-04-01 11:06:34 +02:00
Marcus Schäfer
b9c0815e58
Fixed creation of image metadata files
At the end of a build process the metadata information files .packages
and .verified are created. On rpm based systems, rpm is invoked as
chrooted operation inside the new root tree. For images that gets
installed exclusively from the bootstrap phase there is no rpm inside
of the image and the call fails. The result are empty metadata files.
This patch prevents calling rpm inside of the image root tree if it's
not installed and also uses the RpmDataBase interface instead of
directly calling rpm. This Fixes #1037
2019-03-31 18:52:08 +02:00
Marcus Schäfer
805c4138f5
Bump version: 9.17.33 → 9.17.34 2019-03-29 15:59:06 +01:00
Marcus Schäfer
43a0673aab
Merge pull request #1035 from sap-oc/boot-fsck-race-fix
kiwi-repart: avoid race between repart and fsck
2019-03-29 15:58:43 +01:00
Stefan Seyfried
048b5c3eb1 kiwi-repart: avoid race between repart and fsck
See issue #1034, this fixes non-booting CentOS-7 OEM images that fail
during repartition / FS resize.
Summary: all parted actions trigger a rescan of partition tables and
this repeatedly starts / stops systemd-fsck-root.service until it
finally fails. The workaround is to mask systemd-fsck-root.service
during repartitioning / FS resize.
2019-03-29 13:07:34 +01:00
Marcus Schäfer
1f9cb702d3
Merge pull request #1013 from SUSE/add_buildah_support
Add buildah tool support for OCI and Docker types
2019-03-29 11:34:23 +01:00
Marcus Schäfer
3b3492e4ff
Update travis doc building target
Disable doc test on travis, we have this in the gitlab-ci
pipeline.
2019-03-29 10:23:09 +01:00
Marcus Schäfer
bea9af8e10
Move sphinx config to python3
Disable modules that have not been ported to sphinx 2.0 API
2019-03-29 10:16:23 +01:00
Marcus Schäfer
bfbf24cfe7
Disable linkcheck/spellcheck
The spellcheck plugin has not been moved to the sphinx 2.0 API
and there are tons of spelling mistakes reported due to the use
of technical terms that are unknown to spellcheck. Also disabled
the linkcheck because it just stands more in our way than it
reports issues that needs to be fixed.
2019-03-29 10:15:48 +01:00
David Cassany
0baa783965
Add buildah tool support for OCI and Docker types
This commit adds buildah tool support for OCI and Docker types. It
requires buildah and skopeo to be installed in the host. The use of
umoci (kept as default choice) or buildah is configured using the
runtime configuration file; consider the following structure:

```
oci:
    - archive_tool: buildah
```
2019-03-29 10:15:48 +01:00
Marcus Schäfer
61b6e6419b
Bump version: 9.17.32 → 9.17.33 2019-03-28 14:42:33 +01:00
Marcus Schäfer
b0f99f983b
Merge pull request #1031 from SUSE/build_with_bootstrap_only
Build with bootstrap only
2019-03-28 14:41:59 +01:00
Marcus Schäfer
964d99f179
Added integration test for bootstrap only builds 2019-03-28 11:21:23 +01:00
Marcus Schäfer
ba3d455979
Fixed bootstrap only building
Image descriptions that define packages in the bootstrap section
only don't need a package manager inside of the image. However
the code to update the location of the rpm database did not
check the presence of rpm and failed on such image descriptions.
This Fixes #1030
2019-03-28 11:20:01 +01:00
Marcus Schäfer
4dea8ede63
Merge pull request #1023 from aplanas/fix_classmethod
Replace @staticmethod with @classmethod when needed
2019-03-26 16:34:34 +01:00