SHA256
1
0
forked from pool/python-kiwi
Commit Graph

363 Commits

Author SHA256 Message Date
Marcus Schaefer
5c8c164bbd - 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

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=177
2020-06-12 12:46:01 +00:00
Dominique Leuenberger
0c764bf5ca Accepting request 810758 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/810758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=62
2020-06-05 18:05:14 +00:00
Marcus Schaefer
8b0b900fda OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=176 2020-05-26 08:24:42 +00:00
Marcus Schaefer
2a6aa35347 - 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

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=175
2020-05-22 13:13:18 +00:00
Marcus Schaefer
e25a1cc474 - 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.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=174
2020-05-22 12:43:23 +00:00
Marcus Schaefer
2a4005e094 - Fixed sdist MANIFEST
kiwi.markup was not part of the source tarball

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=173
2020-05-22 11:30:26 +00:00
Marcus Schaefer
9d8a13eaf3 - 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.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=172
2020-05-22 11:24:13 +00:00
54b0db90ee osc copypac from project:Virtualization:Appliances:Staging package:python-kiwi revision:229
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=171
2020-05-22 10:05:43 +00:00
Marcus Schaefer
34a69461c1 - 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

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=170
2020-05-22 08:14:34 +00:00
Dominique Leuenberger
4b03382e06 Accepting request 797077 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/797077
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=61
2020-04-27 21:30:25 +00:00
Marcus Schaefer
bff191c9e7 - Bump version: 9.20.8 → 9.20.9
- Fixed _get_grub2_mkconfig_tool
  Last patch on this method breaks the search for alternative
  mkconfig names. It returns always on the first lookup which
  could be none. This breaks on systems that uses a different
  name than grub2-mkconfig, like on Ubuntu.

- Increase spare space on disk repart
  The sizing of the virtual cylinders in parted seems to be unfavorable,
  as with some disks and SD cards here the device size is not a multiple
  of the cylinder size, so the last incomplete cylinder is wasted.
  If this wasted space is more than 5MiB, kiwi tries to resize indefinitely.
  Therefore min_additional_mbytes gets increased to prevent running
  into this situation. This Fixes bsc#1165823

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=169
2020-04-17 10:16:43 +00:00
Marcus Schaefer
93ea3ef997 - Bump version: 9.20.7 → 9.20.8
- Fixed return value from _get_grub2_mkconfig_tool
  The method returned the basename of the tool if it could
  be found by Path.which(). But the method's scope has been
  changed in a way that the return value of the method must
  be the result from Path.which() to allow working on the
  full path name.

- Bump version: 9.20.6 → 9.20.7

- Make CommandCapabilities.check_version take the longest match
  This commit ensures that when trying to parse the version of a tool
  the comparison is done with the longest match for the given regular
  expression. This solves cases such in `grub2` where the tool name
  already provides some digit that could be seen as a version.

- Fixed check for grub mkconfig capabilities
  The check for the capabilities of the tool were applied to
  the tool installed on the host but the later call of the
  tool will be done with the tool inside the image root

- Validate use of GRUB_USE_LINUXEFI
  On systems that uses GRUB_USE_LINUXEFI with grub2 version
  less than 2.04 there is no support for dynamic EFI
  environment checking. In this condition we extend the grub
  setup to add this support. The change kiwi does is as
  follows:
  * Apply only on grub < 2.04
  1. Modify 10_linux to set linux/initrd as variables

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=168
2020-04-16 10:28:11 +00:00
Dominique Leuenberger
fc664cb25b Accepting request 792963 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/792963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=60
2020-04-14 13:08:43 +00:00
Marcus Schaefer
dafbf83c68 - Bump version: 9.20.5 → 9.20.6
- Fixed plugin documentation
  While setting up the kiwi boxed plugin I realized some small
  mistakes in the plugin documentation

- Allow overlay directories for profiles
  In addition to the existing root/ overlay directory which
  applies always there can now also be profile specific overlay
  directories. If an overlay directory should be applied for
  a specific profile this can now be done by placing this data
  in a directory that is named the same as the profile name.

- Make build of filesystem image optional for pxe
  Allow to build a kernel/initrd pair without a root
  filesystem image. Related to Issue #1388

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=167
2020-04-07 07:48:24 +00:00
Dominique Leuenberger
2e6125afc5 Accepting request 791150 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/791150
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=59
2020-04-05 18:49:47 +00:00
Marcus Schaefer
6c6a07534f - Bump version: 9.20.4 → 9.20.5
- Add SECURE_BOOT parameter for grub2 in efi mode
  This commit adds the SECURE_BOOT parameter on bootloader sysconfig
  for grub2.
  Fixes bsc#1167746

- Added new oem-resize-once element
  The new element controls the behavior of the repart/resize code
  in the oem-repart dracut module. By default the repart/resize
  happens on every reboot and therefore also allows for disk
  geometry changes during the livetime of the machine. If the
  element is set to false the repart/resize operation happens
  only once and then never again. To check for this condition
  a new profile environment variable kiwi_rootpartuuid which
  holds the PARTUUID of the root partition has been added to
  the disk builder.

- No default boot partition for btrfs_root_is_snapshot
  This commit ensures no boot partition is used when root is set to be
  a btrfs snapshot unless this is explicitly required by the user.
  Fixes #1351

- Make disk allocation check more robust
  The tools used to check the disk allocation condition
  are sfdisk and sgdisk. The problem is that at least sfdisk
  is different in behavior and functionality compared across
  the distributions we support with kiwi. In addition
  the verification for the msdos table cannot be used to
  distinguish between intentionaly wanted free space on

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=166
2020-03-27 10:34:03 +00:00
Dominique Leuenberger
d9fac6455c Accepting request 784048 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/784048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=58
2020-03-26 23:20:27 +00:00
Marcus Schaefer
117b6ec266 - Bump version: 9.20.3 → 9.20.4
- Fix a regression for container builds in OBS
  This commit fixes a regression introduced in 12d84be2. We need to ensure
  that `labels` item exist in oci image configuration dict before updating
  it and creating it in case it doesn't exist.

- Fixed suse doc push pipeline
  build and push are not allowed to run in parallel

- push suse doc only on merge to master

- Build and push SUSE documentation
  On any pull request also build the suse documentation and
  push changes to the OSInside/kiwi-suse-doc git repository.
  The SUSE documentation team needs a repo with docbook sources
  for the publishing procedure. In addition change the gitlab
  pipeline to run in three stages: Test, Documentation and
  Package. Let the style and unit tests run in parallel and
  cleanup the dependency setup

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=165
2020-03-04 17:31:16 +00:00
Marcus Schaefer
8d3c5ca024 - Bump version: 9.20.2 → 9.20.3
- Fix container labels setup in OBS
  This commits fixes the containers label setup in OBS, ensuring that
  adding the 'org.openbuildservice.disturl' label does not clear any
  other label.
  Fixes #1338

- Bump version: 9.20.1 → 9.20.2

- Fixed schema regexp validation
  Regexp patterns used in the schema are translated into python
  expressions by generateDS. It's required to use the XSD schema
  to run generateDS, xsd however has some restrictions on pattern
  use which leads to a warning message for the ones fixed here

- Fixed completion_generator
  Due to the change of the binary name for consistency in the
  docopt docstrings the completion generator failed to produce
  correct results. This commit fixes it

- Store Mock build logs and built RPMs as short-term artifacts
  This makes it much easier to debug what is happening with mock when
  failures occur.

- Added sle15 ppc oem integration test
  Related to Issue #1325

- Added task plugin documentation
  Documentation for developers how to write a custom kiwi

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=164
2020-03-03 07:59:14 +00:00
Dominique Leuenberger
f4e97618cf Accepting request 779546 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/779546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=57
2020-02-29 20:20:24 +00:00
Marcus Schaefer
cb9abdbf66 - Bump version: 9.20.0 → 9.20.1
- Added serial console in centos integration test
  For use with Kanku we enable the serial console for the
  centos integration test image

- Make PrEP partition known to GPT partitioner

- Use GPT table for Power ofw firmware
  GPT partition table should be preferred for power systems
  these days. Related to Issue #1325

- target blocksize for IBM Power8 systems is 4k
  Adapt the oem image integration test for bare metal to use
  4k blocksize

- Fixup documentation for consistency
  There is the legacy kiwi version and there is this kiwi(next generation).
  From a documentation perspective there are several inconsistencies that
  could confuse users. This commit makes the name for KIWI-NG consistent
  across the entire documentation. At places where we point to older
  documentation we use the term Legacy KIWI and a link to the documentation
  that covers this part. All this is needed in preparation to cleanup the
  documentation situation for the SUSE documentation but with respect to
  the upstream doc sources, their layout and markup.

- Do not create empty macros file
  This commit makes sure to empty RPM macros files are created during
  the build. Additionally it also ensures that no needless `rm` and `mkdir`
  calls are done.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=163
2020-02-19 17:04:43 +00:00
Dominique Leuenberger
30fb6f103b Accepting request 774133 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/774133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=56
2020-02-19 11:39:32 +00:00
Marcus Schaefer
1333c4491c - Bump version: 9.19.15 → 9.19.16
- Deleted distro provided login.defs from overlay

- Delete use of methods that are done by the builder

- Deleted obsolete ifplugd from arm build test

- Deleted obsolete ifplugd from s390 build test

- Update status helper script
  Also show new ppc integration test builds

- Added fedora ppc integration test
  Added obs integration test for building a simple disk image
  to be started in a VM on power. Related to Issue #1325

- Added suse ppc integration test
  Added obs integration test for building a simple disk image
  to be started in a VM on power. Related to Issue #1325

- Bump version: 9.19.14 → 9.19.15

- Disable RPM module content validation and filtering when building in OBS
  The Open Build Service builds images by identifying the requested dependencies,
  downloading them into an isolated environment, regenerating the repository
  metadata from scratch with *only* that content, and then passing those
  new repositories to be used for building images. This enforces the
  reproducibility of the image build process.
  However, when building images for Linux distributions that have

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=162
2020-02-06 09:11:04 +00:00
Dominique Leuenberger
f48629c4ff Accepting request 764217 from Virtualization:Appliances:Builder
- Bump version: 9.19.9 → 9.19.10

- Follow up fix for kernel version lookup

  When using custom kiwi boot images a shell method named
  baseCreateCommonKernelFile was used to create a common
  kernel file name in the boot image to allow a simpler
  search code in the builder. The search code in the builder
  however uses the standard kernel naming schema and with
  the latest changes to the kernel version lookup the
  common name did not match the matching pattern anymore.
  The use of such a common kernel file is obsolete and
  the shell method can finally be deleted.

- Bump version: 9.19.8 → 9.19.9

- Refactor kernel version lookup

  For the lookup of the kernel version kiwi provided a small
  C program that reads the first bytes of the kernel binary
  and extracts the version information. Given the various
  compression formats and also the problem of kernel files
  that contains the decompressor code which could be anything
  it has turned out to be difficult to provide a stable tool
  to read the version from the binary. Therefore the code in
  kiwi was refactored to read the version via regexp match
  from the filename which also makes kversion an obsolete
  tool. This Fixes #1308

OBS-URL: https://build.opensuse.org/request/show/764217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=55
2020-01-19 19:51:00 +00:00
Marcus Schaefer
4d719ad416 - Bump version: 9.19.9 → 9.19.10
- Follow up fix for kernel version lookup
  When using custom kiwi boot images a shell method named
  baseCreateCommonKernelFile was used to create a common
  kernel file name in the boot image to allow a simpler
  search code in the builder. The search code in the builder
  however uses the standard kernel naming schema and with
  the latest changes to the kernel version lookup the
  common name did not match the matching pattern anymore.
  The use of such a common kernel file is obsolete and
  the shell method can finally be deleted.

- Bump version: 9.19.8 → 9.19.9

- Refactor kernel version lookup
  For the lookup of the kernel version kiwi provided a small
  C program that reads the first bytes of the kernel binary
  and extracts the version information. Given the various
  compression formats and also the problem of kernel files
  that contains the decompressor code which could be anything
  it has turned out to be difficult to provide a stable tool
  to read the version from the binary. Therefore the code in
  kiwi was refactored to read the version via regexp match
  from the filename which also makes kversion an obsolete
  tool. This Fixes #1308

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=161
2020-01-13 11:54:14 +00:00
Dominique Leuenberger
119c32acb3 Accepting request 758475 from Virtualization:Appliances:Builder
- Bump version: 9.19.7 → 9.19.8

- Update libyui-ncurses-pkg10 to libyui-ncurses-pkg11
  In Tumbleweed there is no longer the libyui-ncurses-pkg10 its been
  superseded by libyui-ncurses-pkg11.
  This fixes the test-image-qcow-openstack integration test

- Reference commit for SUSE maintenance
  This commit adds a reference to Issue #1301 and the report in bugzilla
  bsc#1159538. The issue was fixed in commit 7d96d19c

- Fix grub2 configuration for shim fallback setup
  If shim fallback setup is enabled the grub.cfg is copied to the EFI
  partition. This commit makes sure that the grub.cfg is copied to the EFI
  partition according to the efi mount point.
  Fixes bsc#1159235

- Ensure no swap volume is added on btrfs
  When the selected filesystem is btrfs the volume manager is not LVM.
  In that case the swap partition is not volume, it is a completely
  independent partition. So that we cannot add and additional volume
  for swap when swap is specified in the description file.
  This patch fixes #1301 and fulfills #1297

- Fixed installation chapter in the documentation
  The chapter still outlines multipython support but we
  dropped support for python2 some time ago

OBS-URL: https://build.opensuse.org/request/show/758475
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=54
2020-01-01 13:57:04 +00:00
1adacb13cb - Bump version: 9.19.7 → 9.19.8
- Update libyui-ncurses-pkg10 to libyui-ncurses-pkg11
  In Tumbleweed there is no longer the libyui-ncurses-pkg10 its been
  superseded by libyui-ncurses-pkg11.
  This fixes the test-image-qcow-openstack integration test

- Reference commit for SUSE maintenance
  This commit adds a reference to Issue #1301 and the report in bugzilla
  bsc#1159538. The issue was fixed in commit 7d96d19c

- Fix grub2 configuration for shim fallback setup
  If shim fallback setup is enabled the grub.cfg is copied to the EFI
  partition. This commit makes sure that the grub.cfg is copied to the EFI
  partition according to the efi mount point.
  Fixes bsc#1159235

- Ensure no swap volume is added on btrfs
  When the selected filesystem is btrfs the volume manager is not LVM.
  In that case the swap partition is not volume, it is a completely
  independent partition. So that we cannot add and additional volume
  for swap when swap is specified in the description file.
  This patch fixes #1301 and fulfills #1297

- Fixed installation chapter in the documentation
  The chapter still outlines multipython support but we
  dropped support for python2 some time ago

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=160
2019-12-20 09:59:21 +00:00
Dominique Leuenberger
b0c96a1599 Accepting request 755480 from Virtualization:Appliances:Builder
- Bump version: 9.19.6 → 9.19.7

- Fixed swap setup if btrfs is used
  In case of a volume manager the simplified variant of the
  device name is used in the fstab file to reference the
  swap device. However this is only correct for the lvm
  volume management but not for btrfs. In case of btrfs
  the swap space is not a subvolume but a real partition
  and thus the simplified device spec in fstab puts in the
  loop mapped device which is wrong. This patch fixes it

- Exclude 'Recommends: kiwi-man-pages' for EL7 and older in the spec

- Fixed xz options syntax in default kiwi.yml
  xz options are passed as a string and splitted in code
  but not handled as yml list

- Fixed scope of kiwi-man-pages sub package
  The kiwi-man-pages package provided data that belongs to
  the main package, e.g the completion as well as the
  license information. In addition kiwi-man-pages should
  not be a requirement.

- Fixed result map for OEM pxe install
  The result map for OEM images with installpxe enabled
  contained a wrong file name. Thus the result bundler
  was not able to fetch the tarball

- Open image files in UTF-8
  Post image build metadata like the packages file which are

OBS-URL: https://build.opensuse.org/request/show/755480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=53
2019-12-11 11:04:11 +00:00
Marcus Schaefer
b593695a76 - Bump version: 9.19.6 → 9.19.7
- Fixed swap setup if btrfs is used
  In case of a volume manager the simplified variant of the
  device name is used in the fstab file to reference the
  swap device. However this is only correct for the lvm
  volume management but not for btrfs. In case of btrfs
  the swap space is not a subvolume but a real partition
  and thus the simplified device spec in fstab puts in the
  loop mapped device which is wrong. This patch fixes it

- Exclude 'Recommends: kiwi-man-pages' for EL7 and older in the spec

- Fixed xz options syntax in default kiwi.yml
  xz options are passed as a string and splitted in code
  but not handled as yml list

- Fixed scope of kiwi-man-pages sub package
  The kiwi-man-pages package provided data that belongs to
  the main package, e.g the completion as well as the
  license information. In addition kiwi-man-pages should
  not be a requirement.

- Fixed result map for OEM pxe install
  The result map for OEM images with installpxe enabled
  contained a wrong file name. Thus the result bundler
  was not able to fetch the tarball

- Open image files in UTF-8
  Post image build metadata like the packages file which are

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=159
2019-12-10 09:10:55 +00:00
Marcus Schaefer
ef04a5c99a - Bump version: 9.19.5 → 9.19.6
- Fixup package list for GCE integration test
  Package growpart-rootgrow does no longer exist. Will be
  replaced by a partgrow implementation

- Fixed root setup when building in OBS
  When building in an OBS worker no udevd is running which prevents
  grub2-mkconfig from finding the by-* device nodes and it puts the
  local loop device in which is wrong. Therefore the patching code
  used for overlay disk configurations also applies when building
  in an OBS worker environment. This Fixes #1287

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=158
2019-12-05 09:14:49 +00:00
Marcus Schaefer
4830e87f63 - Bump version: 9.19.4 → 9.19.5
- Fixed setup of default grub config
  In /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT also contained
  the root= information. If grub2-mkconfig runs with that information
  it places the root device information twice because grub2-mkconfig
  resolves this information itself. This commit prevents the root=
  information to be placed in the default grub config and
  Fixes bsc#1156908

- Lookup distribution specific grub font dir
  In addition to the generic grub font directory also lookup
  distribution specific font paths in the system and copy the
  grub unicode font into it. This Fixes #1253

- Do not rsync /dev on debootstrap
  This commit does not rsync /dev on debootstrap and instead it uses
  the bind mount for /dev the same way it is done for other non apt
  based bootstrap processes.

- Add new root option in Path.which method
  This commit adds to Path utility a couple of methods to manipulate
  paths. One to rebase given paths to a new root and another one to
  trim the given root path. In addition a new option in Path.which
  is added to allow searches into chroot evironments.
  Fixes #1276

- Do not rsync kernel filesystems on debootstrap
  This commit ensures that /proc and /sys are not rsynched when
  debootstrapping an apt based image.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=157
2019-12-02 13:36:20 +00:00
Marcus Schaefer
ca3c2eb548 - Bump version: 9.18.34 → 9.18.35
- Fixed subsequent reboot of oem disk
  On a second reboot of an oem disk we check with gdisk's
  verification command if the disk needs to be resized.
  That command however mounts the disk in the background
  and therefore it's urgently required to mask the systemd
  rootfs service before. Otherwise systemd thinks this is
  evil and drops into a rescue shell

- Reference commit for SUSE maintenance
  This commit adds a reference to Issue #1261 and the
  report in bugzilla bsc#1157104

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=156
2019-11-20 11:39:29 +00:00
Marcus Schaefer
abc1c9f254 - Bump version: 9.18.33 → 9.18.34
- Improve alias documentation in XML schema
  This commit aligns the documentation of the default repository alias
  with the current implementation.
  Fixes #1247

- Allow use of relative paths for `dir:<path>` URIs
  This commit allows the use of relative paths for local URIs using the
  the following format:
  dir:<path>
  This is helpful to set in config.xml local URIs for repositories.
  Fixes #1261

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=155
2019-11-19 08:05:17 +00:00
Marcus Schaefer
5052d6eefb - Bump version: 9.18.32 → 9.18.33
- Fixed zipl bootloader config template
  The targetgeometry value is not allowed for SCSI and FBA
  mode. So far we handled only SCSI and failed on FBA mode.
  This commit fixes it

- Adapt test-image-oem integration test for s390
  The test was originally designed to test for DASD 4k block
  storage. However the kpartx utility in the Leap15, TW code
  stream has issues mapping partitions if the loop device
  was setup using 4k sector size. So far we can't create
  images with 4k blocksize due to that issue. Thus the
  integration test is now adapted for an emulated DASD device
  in FBA mode which is not using 4k blocksize. Once the
  problem with kpartx is solved on s390 we will create another
  integration test to test 4k image builds

- Bump version: 9.18.31 → 9.18.32

- Update s390 integration tests
  Added vmx build test to run in kvm on s390. Updated the
  existing oem build test to deploy on DASD. The concept
  of the network setup invented by kiwi for s390 does no
  longer apply and was also not used on the s390 distribution

- Fixed zipl bootloader setup for s390 images
  The preparation to call zipl and the call itself were wrong.
  For whatever reason the kernel image the initrd are moved
  to another location prior to calling zipl. That move broke

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=154
2019-11-15 10:34:58 +00:00
Dominique Leuenberger
3286324dd2 Accepting request 746311 from Virtualization:Appliances:Builder
- Bump version: 9.18.30 → 9.18.31

- Fix gitlab CI pipeline
  Ensure the gitlab CI includes make package for docs generation

- Ensure grub.cfg is copied in EFI/BOOT folder
  This commit fixes the live images in efi mode. Grub configuration file
  is copied to the correct location in <boot_dir>/EFI/BOOT.
  Fixes bsc#1155815

- Bump version: 9.18.29 → 9.18.30

- fix kernel module handling for xz compressed modules
  and firmware files to fix issue #1256

- Bump version: 9.18.28 → 9.18.29

- Update Host/Image support matrix
  Update documentation about the Host vs. Image support and
  compatibility matrix with regards to the SLES target.

- Add default /etc/kiwi.yml file
  Provide a comment only etc/kiwi.yml file that contains all
  parameters we support so far including a short description
  This Fixes #1232

- Bump version: 9.18.27 → 9.18.28

- Delete left over print statement from unit test

OBS-URL: https://build.opensuse.org/request/show/746311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=52
2019-11-11 12:00:16 +00:00
Marcus Schaefer
2a2b78e8db - Bump version: 9.18.30 → 9.18.31
- Fix gitlab CI pipeline
  Ensure the gitlab CI includes make package for docs generation

- Ensure grub.cfg is copied in EFI/BOOT folder
  This commit fixes the live images in efi mode. Grub configuration file
  is copied to the correct location in <boot_dir>/EFI/BOOT.
  Fixes bsc#1155815

- Bump version: 9.18.29 → 9.18.30

- fix kernel module handling for xz compressed modules
  and firmware files to fix issue #1256

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=153
2019-11-07 15:05:03 +00:00
Dominique Leuenberger
0e48b4daf2 Accepting request 745220 from openSUSE:Factory
Reverting, breaks live image boot on uefi: https://openqa.opensuse.org/tests/1075724#step/bootloader_uefi/3

OBS-URL: https://build.opensuse.org/request/show/745220
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=51
2019-11-04 15:57:29 +00:00
Dominique Leuenberger
98cebe71a2 Accepting request 745220 from openSUSE:Factory
Reverting, breaks live image boot on uefi: https://openqa.opensuse.org/tests/1075724#step/bootloader_uefi/3

OBS-URL: https://build.opensuse.org/request/show/745220
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=51
2019-11-04 15:57:29 +00:00
Dominique Leuenberger
edd9ebc05c Accepting request 743848 from Virtualization:Appliances:Builder
- Bump version: 9.18.28 → 9.18.29

- Update Host/Image support matrix
  Update documentation about the Host vs. Image support and
  compatibility matrix with regards to the SLES target.

- Add default /etc/kiwi.yml file
  Provide a comment only etc/kiwi.yml file that contains all
  parameters we support so far including a short description
  This Fixes #1232

- Bump version: 9.18.27 → 9.18.28

- Delete left over print statement from unit test

- Enable BLS configuration if is supported
  Fedora now uses a BLS configuration by default, but this is not supported
  by all distributions. So check if is supported by the grub2-mkconfig tool
  and only enable the option if that's the case.
  Fixes: #1248

- Bump Fedora x86 build test to Fedora30

- Bump version: 9.18.26 → 9.18.27

- Fix btrfs_root_is_snapshot
  This commit makes sure the chrooted operations of over a loop device
  including btrfs subvolumes and root as an snapshot include the
  `/.snapshots` subvolume mount. This is necessary for certain operations
  that depend on the layout, e.g. grub configuration using `grub2-mkconfig`.

OBS-URL: https://build.opensuse.org/request/show/743848
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=50
2019-11-03 10:00:01 +00:00
Dominique Leuenberger
0c833cfa13 Accepting request 743848 from Virtualization:Appliances:Builder
- Bump version: 9.18.28 → 9.18.29

- Update Host/Image support matrix
  Update documentation about the Host vs. Image support and
  compatibility matrix with regards to the SLES target.

- Add default /etc/kiwi.yml file
  Provide a comment only etc/kiwi.yml file that contains all
  parameters we support so far including a short description
  This Fixes #1232

- Bump version: 9.18.27 → 9.18.28

- Delete left over print statement from unit test

- Enable BLS configuration if is supported
  Fedora now uses a BLS configuration by default, but this is not supported
  by all distributions. So check if is supported by the grub2-mkconfig tool
  and only enable the option if that's the case.
  Fixes: #1248

- Bump Fedora x86 build test to Fedora30

- Bump version: 9.18.26 → 9.18.27

- Fix btrfs_root_is_snapshot
  This commit makes sure the chrooted operations of over a loop device
  including btrfs subvolumes and root as an snapshot include the
  `/.snapshots` subvolume mount. This is necessary for certain operations
  that depend on the layout, e.g. grub configuration using `grub2-mkconfig`.

OBS-URL: https://build.opensuse.org/request/show/743848
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=50
2019-11-03 10:00:01 +00:00
Marcus Schaefer
406eeaa878 - Bump version: 9.18.28 → 9.18.29
- Update Host/Image support matrix
  Update documentation about the Host vs. Image support and
  compatibility matrix with regards to the SLES target.

- Add default /etc/kiwi.yml file
  Provide a comment only etc/kiwi.yml file that contains all
  parameters we support so far including a short description
  This Fixes #1232

- Enable BLS configuration if is supported
  Fedora now uses a BLS configuration by default, but this is not supported
  by all distributions. So check if is supported by the grub2-mkconfig tool
  and only enable the option if that's the case.
  Fixes: #1248

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=152
2019-10-29 14:15:46 +00:00
Marcus Schaefer
ee7c237933 - Bump version: 9.18.27 → 9.18.28
- Delete left over print statement from unit test

- Bump Fedora x86 build test to Fedora30

- Bump version: 9.18.26 → 9.18.27

- Fix btrfs_root_is_snapshot
  This commit makes sure the chrooted operations of over a loop device
  including btrfs subvolumes and root as an snapshot include the
  `/.snapshots` subvolume mount. This is necessary for certain operations
  that depend on the layout, e.g. grub configuration using `grub2-mkconfig`.

- Skip isolinux ui setup on serial terminal config
  If the attribute bootloader_console="serial" is set, the
  expectation that there is no graphics hardware available is
  valid. Thus the isolinux setup should not contain any ui
  configuration instructions because that leads to run the
  graphics initialization which blocks the system if not
  present. Please note the bootloader_console allows for
  multiple console configuration. In mixed setup the ui
  configuration still applies. This Fixes #1153

- Added helper script to test status of test builds
  build_status fetches information from obs about the status
  of the integration test builds. It also allows an easy refresh
  of the tests regarding content changes on git when called
  with the refresh parameter: build_status refresh

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=151
2019-10-28 09:19:13 +00:00
Dominique Leuenberger
23813f66a5 Accepting request 732926 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/732926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=49
2019-09-30 13:51:40 +00:00
Dominique Leuenberger
59a7fc2177 Accepting request 732926 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/732926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=49
2019-09-30 13:51:40 +00:00
Marcus Schaefer
0a29f52a43 - Bump version: 9.18.15 → 9.18.16
- Fix modules omission for dracut based initrds
  This commit fixes a regression introduced in 07ea23a4. In OEM images
  the dracut modules were not properly omitted as the code was evaluating
  the wrong variable.
  Fixes #1201

- Fix GPT to MBR convertion
  This commit swaps the order of the command in gpt to mbr convertion
  in partitioner.gpt.set_mbr method.
  sgdisk by default converts the partition table from MBR to GPT in memory.
  The change is never applied unless you provide the -g option forcing to
  overwrite the partition table format. If sgdisk does the convertion in
  memory and the user does not provide the -g flag it returns an error
  code.
  The solution applied in this commit is to just run the GPT to MBR
  convertion as the last sgdisk command and change partition type before
  running the convertion.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=150
2019-09-17 11:36:21 +00:00
97b2deb1f9 - Bump version: 9.18.14 → 9.18.15
- Fixed user permission
  The comand was evaluated as chmod -c -R '...' . This is not the
  correct syntax. Removing quotation marks solved problem
  and Fixes #1191

- Clean up openstack packages

- Fix unresolves for x86 integration tests
  nfsidmap package is no longer available in TW. It's been renamed to
  libnfsidmap1, moreover this is a package already required by nfs-client
  and similar packages. Thus gets installed in the modified image
  descriptions without having to list it, as it is already a dependency of
  another required package.

- Do not require multipath in dracut-kiwi-oem-dump
  Installation of multipath tools triggers storage devices
  to be handled as multipath maps in dracut. If the deployment
  happens in a non multipath system those devices do not exist
  and the system later hangs in the dracut initqueue waiting
  for mapper devices that never appears

- Reverting partsthat are already implemented
  This problem is discussed in #1195

- Switched back to original root-device search

- Detect raid compound in root disk detection
  Make sure raid managed storage e.g fake raid is detected

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=149
2019-09-16 12:12:43 +00:00
Dominique Leuenberger
dd3c6dfd63 Accepting request 728721 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/728721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=48
2019-09-11 08:23:14 +00:00
Dominique Leuenberger
de1481ae34 Accepting request 728721 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/728721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=48
2019-09-11 08:23:14 +00:00
874daaa89a - Bump version: 9.18.12 → 9.18.13
- Add --add-bootstrap-packages option
  The prepare and build commands now allows to specify additional
  packages to be installed as part of the early bootstrap phase
  This Fixes #1151

- Detect raid disks in oem dump module
  The current disk detection only takes lsblk entries into
  account that marks the device as 'disk'. However on raid
  disks like fake raid controllers the disk is mapped via
  dmraid and marked as 'raidX' device. This commit also takes
  those devices into account for deployment. Issue #1181

- Fix return value of is_prepared method
  The method is expected to return a bool value. In fact it
  returned a list. An empty list is evalutated as False in
  python, a list with content as True. So the way the method
  is used is correct but the return value should be a real
  bool value to match the docs and expectations. Also the
  unit test for this code was wrong. This Fixes #1175

- Update documentation regarding fstab adaptions

- Add support for custom fstab script extension
  In addition to fstab append and patch features we also allow
  an fstab.script file that is called chrooted. The change is
  needed to support overlay mounting of filesystems as part
  of the initrd. If system filesystems needs to be changed in
  a way that they can be used in an overlay mount, the standard

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=148
2019-09-06 08:56:46 +00:00
Dominique Leuenberger
b22bdc6302 Accepting request 726411 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/726411
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=47
2019-09-02 11:17:39 +00:00