Revisions of python-kiwi
Marcus Schaefer (sax2)
committed
(revision 189)
- Bump version: 9.21.26 → 9.22.0 - Omit multipath module by default The plain installation of the multipath toolkit activates the dracut multipath code. The setup if the target image runs in a multipath environment or not should however be decided explicitly in the image description via <oem-multipath-scan> and not implicitly by the presence of tools - Fixed multipath disk device assignment in kiwi lib The former lookup of the multipath mapped disk device contained a race condition. If the lookup of the device mapper files happened before multipathd has finished the initialization, kiwi continues with the unix node name and fails when the device mapper keeps a busy state on it. This commit changes the code such that in case of an explicit request to use multipath the lookup of the mapped device becomes a mandatory process that runs until the DEVICE_TIMEOUT is reached. Default timeout is set to 60 sec. This references Issue SUSE-Enceladus/azure-li-services#255 - Fixed PackageManager decorator in unit test Implement patch decorators for factories consistently - Refactor Repository This commit refactors the Repository class and turns it into a proper factory class and also includes type hints to facilitate it's use from an API POV. Related to #1498 - Add DNF as a proper dependency for openSUSE This is required so that OBS can build openSUSE containers and appliances
Marcus Schaefer (sax2)
committed
(revision 188)
- Bump version: 9.21.25 → 9.21.26 - Fixed dnf plugin config setup Only create a dnf plugin config if the plugin config directory to store that file exists in the system - Set --releasever=0 for microdnf To allow microdnf to work from an empty root directory we need to set the release version to zero - Use custom varsdir for dnf builds - Partially revert dcounter.c flaw report I could not find a problem with this read call it does check on the buffer boundaries and it only writes the bytes that read returns until read returns <= 0 - Fixed dcounter.c flaw report Check buffer boundaries if used in a loop - Fixed dcounter.c flaw report Variable scope can be reduced and useless value assignment. - Fixed microdnf support The installroot argument must be used together with --config and additionally with --noplugins, as well as --setopt for cachedir, reposdir and varsdir. Related to #1625 - Move tools README to ReST
Marcus Schaefer (sax2)
committed
(revision 187)
- Bump version: 9.21.22 → 9.21.23 - Move usrmerge package out of the bootstrap section Currently bootstrap phase on APT package manager makes use of the debootstrap tool. However debootstrap is limited to execute the bootstrap using a single repository. This is causes several limitations in OBS builds, such as the impossibility of using update repositories or the inclusion of any package that is not part of the standard OBS repository. Usrmerge package is part of the universe repository in OBS which is not te one used by debootstrap, so it can't be installed on bootstrap phase. - Bump version: 9.21.21 → 9.21.22 - Fixed package manager api inconsistency The method post_process_install_requests_bootstrap in the zypper package manager was missing an argument - Bump version: 9.21.20 → 9.21.21 - Fixed regexp for grub rootdev substitution The regular expression to match the grub root device used a lazy glob match ".*?". This however matches a too long part depending on the rest of the content. This commit fixes the expression to be strict on the allowed characters and makes sure the anchor characters are not part of the matching character class. This Fixes #1607 - Fix quick start guide build command
Marcus Schaefer (sax2)
committed
(revision 186)
- Bump version: 9.21.19 → 9.21.20 - Deleted yast from test-image-qcow-openstack yast is not part of the testing queue in kiwi integration tests - Obsolete config functions baseMount/baseCleanMount The above methods are obsolete since kiwi handles these mount/umount processes as part of the core builder code. This Fixes #1536 - Allow custom root volume name setup In addition to the custom size of the root volume it's now also possible to setup the name of the root volume as follows: <volume name="@root=rootlv"/> If no name for the root volume is specified the default name: LVRoot applies as before. This Fixes #1530 - Rename image build tests To use the image builds in openQA they have to have a unique name such that it cannot happen that a cached version of an image in openQA is used. The current names matched openQA cached images e.g openSUSE-Tumbleweed and in addition different image build tests used the same name. This commit uses the name of the image as it is organized in its directory structure prepending "kiwi-" to be unique in openQA when it fetches the image. This is realted to Issue #1555 - Add support for s390 CDL DASD disks On s390 and in CDL mode (4k DASD) the call of grub2-install does not work because grub2-install is not able to identify
Marcus Schaefer (sax2)
committed
(revision 185)
- Bump version: 9.21.18 → 9.21.19 - Update outdated OBS User Guide Links - Fixed device_array structure in get_selected_disk In reference to Issue #880 a bug was introduced that broke the contents of the device_array which causes issues on installations with two or more attached disks. The change in the mentioned PR reduced the tuple for each disk from 3 elements to 2 elements. Therefore the loop that iterates over the disk tuples via modulo 3 was broken. This commit fixes the modulo operation to correctly parse the disk_list. Fixes #1588 - Fixed strncopy in dcounter helper The max size of the copy operation was always set to zero because the strlen of an empty buffer is zero. Bad mistake from my side :( This Fixes #1579 - Bump version: 9.21.17 → 9.21.18 - Fix profile docs This commit fixes the profiles documentation. The example KIWI-NG command was using wrong flags order. This commit fixes the `--profile` flag order in documentation. - Enhance scope of _fix_grub_root_device_reference In addition to the wrong root=/dev/mapper/loop... reference fixing, written by grub2-mkconfig when used in obs there is also the case that grub2-mkconfig writes root=PARTUUID which
Marcus Schaefer (sax2)
committed
(revision 184)
- Bump version: 9.21.16 → 9.21.17 - Make dependencies to dracut-kiwi-lib release specific This commit adds a dracut-kiwi-lib dependency to dracut-kiwi-oem-dump and darcut-kiwi-oem-repart to match up to the release level. This way the dependency ensures the pulled binaries they are all part of the same build. - Bump version: 9.21.15 → 9.21.16 - Delete length limitation of image id attribute For legacy reasons the <image id="..."/> attributes was limited to 10digits. The contents of /etc/ImageID are now free format and no longer strictly evaluated. Thus the limitations on the id attribute can be deleted
Marcus Schaefer (sax2)
committed
(revision 183)
- Bump version: 9.21.14 → 9.21.15 - Align dracut-kiwi-lib version with packages requiring it This commit enforces dracut-kiwi-oem-repart and dracut-kiwi-oem-dump to require dracut-kiwi-lib of the same exact version. This prevents dracut-kiwi-lib and the packages dependent on it being installed on a image with inconsistent versions. Fixes #1529 - Allow to configure .changes creation and bundling Provide config option has_package_changes in the runtime config file and set a useful default. For building outside obs the default for the .changes creation is switched on, for building in obs it's switched off because obs creates its own info file - Fix compat link for rpmdb location This commit fixes the symlink creation for `/var/lib/rpm`. More specific for derived container images in which the base root tree already included the `/var/lib/rpm` the link, the `ln` command was creating a symlink inside the `/var/lib/rpm` folder givent that it was following the already existing symlink. Adding the `--no-target-directory` force `ln` command to treat `/var/lib/rpm` path as the fully qualified symlink name. Fixes bsc#1176977 - Report download URL on failed request In case a network request to a given URL failed the report message should include the URL This Fixes #1572 - Use pragma: no cover to skip non reachable code Instead of placing the file into .coveragerc use the
Marcus Schaefer (sax2)
committed
(revision 182)
- Bump version: 9.21.13 → 9.21.14 - Fixed s390/sle15 Virtual disk integration test The integration test used FBA mode as target. As the target is expected to be KVM this is the wrong setting. SCSI should be used instead. This Fixes bsc#1170863 - Followup fix to handle one disk type better The vmx type is auto converted into an oem type with rootfs resize disabled such that all disk images can be handled under one disk type. However people who run kiwi on the commandline and have selected --type vmx before now end with an error message saying that there is no vmx type because it was converted into an oem type. To handle this more gracefully this commit changes the commandline option --type vmx into --type oem if provided and prints a warning message. - Bump version: 9.21.12 → 9.21.13 - Cleanup grub adaptions code The grub setup code has some after grub-mkconfig code that fixes the written grub.cfg file on certain conditions. For a better understanding and readability those conditions and reasons are now put into private _fix* methods that explains why we need to patch the written grub config file. We all hope that those methods can go away when grub gets fixed properly. This Fixes #1527 - Cosmetic update for build status helper
Marcus Schaefer (sax2)
committed
(revision 181)
- Bump version: 9.21.11 → 9.21.12 - 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. - 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
Marcus Schaefer (sax2)
committed
(revision 180)
- Bump version: 9.21.10 → 9.21.11 - 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 - 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. - Bump version: 9.21.9 → 9.21.10 - 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 - 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
Marcus Schaefer (sax2)
committed
(revision 179)
- Bump version: 9.21.6 → 9.21.7 - 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 - Fixed GCE integration test build nothing provides google-compute-engine-init - Fixed bootloader grub copy SameFileError exception Only copy the file if the given source and destination are not the same file - 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 - Bump version: 9.21.5 → 9.21.6 - Skip filesystem check for XFS prior xfs_grow running xfs_repair check isn't strictly necessary before resizing, and in some cases it may even prevent resizing by giving an error that would be cleared through mounting the fs (e.g. when the fs wasn't cleanly umounted, and thus letting xfs recover and replay its journal). Given that xfs can only grow online (while being mounted), this is sufficient to ensure that the fs is in a state where it can be resized. This is related to bsc#1174009 - Fixed code logic in resize_filesystem method
Marcus Schaefer (sax2)
committed
(revision 178)
- Bump version: 9.21.2 → 9.21.3 - Fixes live ISOs This commit fixes iso images. Due to a change introduced in c7ed1cf live ISOs were no longer booting as the rootfs.img filesystem was copied to the squashfs container while being still mounted. Because of that, at boot time, it refused to mount. This commit adds umount method for the filesystem base class, so it can be umounted before deleting the instance. Fixes #1489 and bsc#1173356 - Global variables (#1485) * Fix according to PEP8 * Refactor global variables pythonic way * Remove unused import - Add locale configuration hints in docs - Add missing decorator for static methods - Bump version: 9.21.1 → 9.21.2 - Fixed check for root device in grub config There is a code path that fixes the grub2-mkconfig used root device when building in an environment that does not allow to resolve the by-X path names, e.g an obs build worker without udev. For images that explicitly defines a root=... value in the kernelcmdline attribute the root device check was not called because the _get_root_cmdline_parameter method returns None. This commit fixes the method to return the expected root device in any case such that
Marcus Schaefer (sax2)
committed
(revision 177)
- Bump version: 9.21.0 → 9.21.1 - Fixed test-image-qcow-openstack Nothing provides libyui-ncurses-pkg11, yast2-trans-en_US in TW anymore - Moved sle12 ppc integration test to internal bs In agreement with IBM the sle12 integration test has been moved into the internal buildservice. The reason for this change is a python 3.4 compatibility problem. This version of python is used in sle12 but would require patching of upstream kiwi in terms of type hints and annotations to continue to work. We don't want to cary this patch upstream but in the sle12_kiwi repository which contains the kiwi used in sle12. Therefore also the integration test needs to move into the internal sle12 space. - Ignore MyPy cache - Ignore VSCode cache - Remove sed calls to fix /etc/vimrc An update of vim in Tumbleweed will move /etc/vimrc to /usr/share/vim as part of the /usr - /etc split. This makes the sed call fail because /etc/vimrc no longer exists. However, the fix is not required anymore then, as the vim package dropped the "syntax on" line from the default vimrc. - Fixed permissions of custom boot image root dir When building a custom kiwi initrd the root directory
Marcus Schaefer (sax2)
committed
(revision 176)
Marcus Schaefer (sax2)
committed
(revision 175)
- Bump version: 9.20.15 → 9.20.16 - Fixed schematron rule for bootloader targettype The targettype attribute must be allowed for the grub2_s390x_emu bootloader name
Marcus Schaefer (sax2)
committed
(revision 174)
- Bump version: 9.20.14 → 9.20.15 - Fixed parse result description reference The object that holds the parse result also contains an information about description_dir and derived_description_dir. The change on the markup processing impacted the value for description_dir to be no longer the origin (user provided) directory. That broke any reference of files that belongs to the description directory like custom scripts config.sh, images.sh and so on.
Marcus Schaefer (sax2)
committed
(revision 173)
- Fixed sdist MANIFEST kiwi.markup was not part of the source tarball
Marcus Schaefer (sax2)
committed
(revision 172)
- Bump version: 9.20.13 → 9.20.14 - Remmove any Recommends for CentOS7 This commit fixes the package spec for CentOS 7. In CentOS 7 there is no support for weak dependencies. In 9792cea1 a recommended dependency on gpg tools was included for all builds and this caused a failure for CentOS 7. With this commit, the recommended dependency, is omitted for any pre CentOS 8 distro.
David Cassany (dcassany)
committed
(revision 171)
osc copypac from project:Virtualization:Appliances:Staging package:python-kiwi revision:229
Marcus Schaefer (sax2)
committed
(revision 170)
- Bump version: 9.20.12 → 9.20.13 - Fix default repositories for APT This commit fixes the default repositories configuration for APT. Fixes #1439 - Include recommend for gpg tool - Fix signing keys management for APT This commit fixes the management of the trusted keyring for apt repositories. It creates a `trusted.gpg` keyring with the provided signing keys so APT can check against that the configured repositories. Fixes #1440 - Fixed spec file This patch is two fold. First the py2 version of kiwi was dropped since py2 is EOL. To indicate that correctly on the package level python3-kiwi has to obsolete python2-kiwi. The other part of the change is a file conflict of the files: etc/bash_completion.d/kiwi-ng.sh /usr/share/doc/packages/python-kiwi/README which were provided by the kiwi-man-pages sub-package but were moved to be provided by the main python3-kiwi package now. On update of the package with an older version of kiwi that maintains this files to belong to kiwi-man-pages a file conflict at install time appears. To solve this python3-kiwi now conflicts with kiwi-man-pages < %{version} This Fixes #1413 and Fixes bsc#1168973 and bsc#1156677
Displaying revisions 61 - 80 of 249