435 Commits

Author SHA256 Message Date
Ana Guerrero
dd9380b101 Accepting request 1245598 from Virtualization:Appliances:Builder
- Bump version: 10.2.9 → 10.2.10

- Poetry build sdist timestamps set to epoch 0
  Newer versions of poetry set the timestamp for all source
  files to epoch 0. Such sources are not accepted by e.g
  Debian FTP servers and in general I don't like when tools
  changes their behavior just like that. This commit forces
  an older version of poetry for the purpose of creating the
  sdist tarball which then gets published on pypi. The
  argumentation for reproducible builds by forcing source
  files to a certain timestamp doesn't fly for me. I'm open
  for any better solution though. This Fixes #2730

OBS-URL: https://build.opensuse.org/request/show/1245598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=130
2025-02-14 18:19:08 +00:00
55ef802dca - Bump version: 10.2.9 → 10.2.10
- Poetry build sdist timestamps set to epoch 0
  Newer versions of poetry set the timestamp for all source
  files to epoch 0. Such sources are not accepted by e.g
  Debian FTP servers and in general I don't like when tools
  changes their behavior just like that. This commit forces
  an older version of poetry for the purpose of creating the
  sdist tarball which then gets published on pypi. The
  argumentation for reproducible builds by forcing source
  files to a certain timestamp doesn't fly for me. I'm open
  for any better solution though. This Fixes #2730

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=281
2025-02-11 15:28:01 +00:00
Ana Guerrero
abf47aae50 Accepting request 1244422 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1244422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=129
2025-02-10 16:22:54 +00:00
264f76049d - Bump version: 10.2.8 → 10.2.9
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=280
2025-02-01 22:15:48 +00:00
1668ea1808 - Classify missing chkstat as debug message
chkstat is a distribution specific tool. If it is
  present we use it, if not we don't but it's not worth
  a warning. This Fixes #2711

- Allow to run setfiles multi threaded
  Use option -T0 for newer setfiles version.
  This Fixes #2719

- Add rd.kiwi.dialog.timeout option
  Allow to configure the timeout value for dialogs displayed
  by the kiwi dracut code. By default the timeout is set to
  60 seconds. With the special value "off" the dialog will
  never timeout. This Fixes #2718

- Make sure copy actions does not drop context
  Use shutil.copy2 to copy files preserving their
  attributes in the grub BootLoader space.
  This Fixes #2709

- Improve unit test for archive target_dir
  Add a test case with absolute path in the target_dir
  to make sure we never unpack the archive to the host
  system. The actual issue was resolved together with
  the implementation in #1953 and commit
  78238a993c966d1229cd2fc1f5923673a90de14d
  This Fixes #2701

- Fixed profiled overlay imports
  When building an image for profile: SOME and providing

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=279
2025-02-01 22:12:53 +00:00
Ana Guerrero
6247f2ece9 Accepting request 1240498 from Virtualization:Appliances:Builder
- Bump version: 10.2.7 → 10.2.8

- Increase size for agama integration test build
  Agama needs more space to build now

- Fixed agama integration test
  rubygem-byebug and rubygem-agama-yast seems to
  no longer exist

- Update TW integration tests
  Package nscd was dropped from TW

- Fix documentation regarding URI styles
  In reference to commit 760a65558f9e2e91d3eaa3a2f9503ff596984b48
  the support for iso:// URI types was dropped some time ago.
  However, the documentation was not properly updated. This
  commit fixes it

- Fix return value of grub helper methods
  The grub helper methods to find grub tools returns a
  None value if the tool cannot be found. This None value
  could be used later in a Command call where it will be
  used in a join() command to log the resulting commandline.
  This join() call then fails and raises an unhandled error
  causing a stack trace in the application. This commit
  fixes it

- Added disk validation for duplicate installs
  Installing the same image to different storage disks on the
  same machine creates device conflicts with unexpected side

OBS-URL: https://build.opensuse.org/request/show/1240498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=128
2025-01-28 13:58:31 +00:00
065c91ec3f - Bump version: 10.2.7 → 10.2.8
- Increase size for agama integration test build
  Agama needs more space to build now

- Fixed agama integration test
  rubygem-byebug and rubygem-agama-yast seems to
  no longer exist

- Update TW integration tests
  Package nscd was dropped from TW

- Fix documentation regarding URI styles
  In reference to commit 760a65558f9e2e91d3eaa3a2f9503ff596984b48
  the support for iso:// URI types was dropped some time ago.
  However, the documentation was not properly updated. This
  commit fixes it

- Fix return value of grub helper methods
  The grub helper methods to find grub tools returns a
  None value if the tool cannot be found. This None value
  could be used later in a Command call where it will be
  used in a join() command to log the resulting commandline.
  This join() call then fails and raises an unhandled error
  causing a stack trace in the application. This commit
  fixes it

- Added disk validation for duplicate installs
  Installing the same image to different storage disks on the
  same machine creates device conflicts with unexpected side

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=278
2025-01-27 10:51:52 +00:00
Ana Guerrero
e6802da787 Accepting request 1233432 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1233432
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=127
2024-12-29 10:55:44 +00:00
e911bbf973 - Bump version: 10.2.4 → 10.2.5
- Changed systemfiles provider
  Instead of providing a static list of filenames, provide a list
  of package names. It is expected that the pilot of flake-pilot
  resolves this list against the local package database to build
  up the filelist for provisioning

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=277
2024-12-19 09:39:28 +00:00
463ac359df - Bump version: 10.2.3 → 10.2.4
- Update system files setup for containers
  The attribute provide_system_files creates a meta file in the
  root tree named 'systemfiles'. The contents of this file were
  produced by just a dump of the package database so far. For
  a more generic use of this data some adaptions were needed.
  First we allow to skip packages matching a pattern from being
  part of the system files. Next we do not put ghost and doc
  files into account. And last we handle library files in a different
  file named 'systemfiles.libs' where we do not add symlink targets
  if the target path is also part of the package. The consumer
  of this information is flake-pilot which syncs that library system
  files from the host via --copy-links. This allows a more generic
  use with regards to versioned libraries e.g. libc

- Drop /dev/pts from bind mount locations
  This has created havoc in the Fedora build environments by
  fully unmounting /dev/pts and breaking the builders for
  subsquent tasks.
  This is a partial revert of commit daf1323c5ded7e4e7783205f5e30457b40eb322f.

- Don't take ghost files into account
  When creating the system files information do not
  take ghost files and artifact files into account

- xorriso: respect efiparttable and gpt_hybrid_mbr
  This should make the xorriso-based ISO build path respect the
  'efiparttable' and 'gpt_hybrid_mbr' settings when building a
  UEFI-compatible image, making it write a GPT disk label by default

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=276
2024-12-14 20:03:59 +00:00
Ana Guerrero
48736933e0 Accepting request 1228733 from Virtualization:Appliances:Builder
- Bump version: 10.2.2 → 10.2.3

- Update STYLEROOT to SUSE 2022

- Fix broken links in the documentation

- Fix legacy_bios_mode detection
  The code in this method does not work correctly if the
  firmware is set to 'bios'. In bios only mode the method
  returned a false value which is incorrect as it should
  return a true value in this case. Without this patch
  ISO images will fail to boot because no loader gets
  configured.

- Added /dev/pts to bind mount locations
  During runtime several kernel filesystems are bind mounted into
  the image root system such that programs expecting it can work.
  /dev/pts was not needed so far but seems to be a good addition
  to the list to make tools like sudo to work properly when called
  e.g. from a config.sh script. This Fixes #2686

- Added provide/require system files for containers
  Added the attributes provide_system_files and require_system_files
  to control the provider and requester of system files in
  container image builds. systemfiles is a metadata file which
  contains all files from the package database at call time.
  It is used in flake-pilot to provision the systemfiles data
  from the host into the container instance. One possible use
  case for this data is a flake registration which uses a
  base container that is derived from a runtime container but

OBS-URL: https://build.opensuse.org/request/show/1228733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=126
2024-12-08 10:36:21 +00:00
792dd3622b - Bump version: 10.2.2 → 10.2.3
- Update STYLEROOT to SUSE 2022

- Fix broken links in the documentation

- Fix legacy_bios_mode detection
  The code in this method does not work correctly if the
  firmware is set to 'bios'. In bios only mode the method
  returned a false value which is incorrect as it should
  return a true value in this case. Without this patch
  ISO images will fail to boot because no loader gets
  configured.

- Added /dev/pts to bind mount locations
  During runtime several kernel filesystems are bind mounted into
  the image root system such that programs expecting it can work.
  /dev/pts was not needed so far but seems to be a good addition
  to the list to make tools like sudo to work properly when called
  e.g. from a config.sh script. This Fixes #2686

- Added provide/require system files for containers
  Added the attributes provide_system_files and require_system_files
  to control the provider and requester of system files in
  container image builds. systemfiles is a metadata file which
  contains all files from the package database at call time.
  It is used in flake-pilot to provision the systemfiles data
  from the host into the container instance. One possible use
  case for this data is a flake registration which uses a
  base container that is derived from a runtime container but

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=275
2024-12-03 14:40:41 +00:00
091e7218ec - Bump version: 10.2.1 → 10.2.2
- Fix scope issue
  Increase livetime of the the compressor instances
  to the livetime of RootImportOCI. They create temporary
  files which are referenced later and need to live longer
  than the block they got created in

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=274
2024-11-27 09:02:41 +00:00
ddea0b5a6e - Bump version: 10.2.0 → 10.2.1
- Fixed use of fscreateoptions for iso type
  The information for fscreateoptions was not passed along to the
  tooling if a custom filesystem attribute was specified.
  This Fixes #2681

- Allow to derive from multiple containers
  Add support for multi inheritance to the derived_from attribute
  In the order of a comma seperated list of docker source URI's
  a base tree is created. This was possible only with one container
  so far and Fixes #2680 as well as jira#OBS-354

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=273
2024-11-26 12:19:51 +00:00
1cd0120fd0 - Bump version: 10.1.18 → 10.2.0
- Add selinux test build to TW
  Also update derived docker integration test to latest Leap

- kiwi/schema: Fix allowed value type for ISO publisher and application ID
  According to the spec, this should be constrained to 128 characters
  but also allow quite a few other special characters (as well as spaces).
  We didn't allow spaces in application ID, but allowed too much for Publisher.
  Now we set up both correctly.

- Fix setup of kiwi environment variables
  Some kiwi env vars are initialized with an empty value
  and not overwritten if another value is provided. For
  the selected variables an empty value setting is not
  allowed because the schema also enforces the value to
  be set at least once. In addition a helpful option
  named --print-kiwi-env was added to the 'image info'
  command which allows to print the environment variables
  and their values.

- Add random key support for LUKS encryption
  Allow to pass luks="random". In random mode use the
  generated keyfile as the only key to decrypt. This is
  only secure if the generated initrd also gets protected
  e.g. through encryption like it is done with the secure
  linux execution on zSystems

- Added development group in pyproject setup
  generateDS and other tools are needed and were forgotten

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=272
2024-11-21 10:56:05 +00:00
Dominique Leuenberger
a3523e2831 Accepting request 1222746 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1222746
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=125
2024-11-09 19:52:52 +00:00
c78423f171 - Fix make build target
Move the actions done by the tox target into the
  build target and call them there in a clean and easy
  to spot sequence. There is no need to call tox to
  prepare for the package submission, instead the
  checks and poetry runs to prepare for the package
  target should be called directly as part of the
  build target. In the future we might get rid of
  tox completely.

- Bump version: 10.1.17 → 10.1.18

- Fixed zipl caller environment
  zipl gets confused with an active sysfs mount inside
  the root tree at call time of zipl. This commit
  umounts the /sys bind mount in the image tree prior
  calling zipl

- Fix s390 test-image-disk build
  Add missing kernel links used by suse tools

- Bump version: 10.1.16 → 10.1.17

- Fix coloring of build_status.sh flags
  Depending on the place of the status flag the color
  setup might fail. This commit fixes it

- Add pytest-container as optional dependency
  The pyproject.toml listed pytest-container as dependency
  but it is used only to run the container based integration

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=271
2024-11-01 12:37:23 +00:00
Ana Guerrero
ec2a9e8ac8 Accepting request 1217317 from Virtualization:Appliances:Builder
- Bump version: 10.1.15 → 10.1.16

- Fix erofs requires in spec
  erofs-utils for SUSE only exists in Tumbleweed. The
  former conditon would also add the requirement for ALP
  and SLFO which is wrong. This commit fixes it

- Add vagrantconfig rule for vagrant format
  If the format="vagrant" attribute is set, a vagrantconfig
  section becomes mandatory. This commit enforces this rule
  on the schema. This Fixes #2666

OBS-URL: https://build.opensuse.org/request/show/1217317
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=124
2024-10-23 19:08:03 +00:00
b99e55d778 - Bump version: 10.1.15 → 10.1.16
- Fix erofs requires in spec
  erofs-utils for SUSE only exists in Tumbleweed. The
  former conditon would also add the requirement for ALP
  and SLFO which is wrong. This commit fixes it

- Add vagrantconfig rule for vagrant format
  If the format="vagrant" attribute is set, a vagrantconfig
  section becomes mandatory. This commit enforces this rule
  on the schema. This Fixes #2666

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=270
2024-10-23 10:24:49 +00:00
Ana Guerrero
c61b085afe Accepting request 1216728 from Virtualization:Appliances:Builder
- Bump version: 10.1.14 → 10.1.15

- Fixed sphinx_rtd_theme setup
  Delete obsolete display_version attribute

- Evaluate eficsm everywhere
  Fixed _supports_bios_modules() to take an eventually
  provided eficsm setup into account. The grub config still
  searches for i386 grub modules even if eficsm="false"
  is set.

- Fixed debian bootstrap script calls
  Run scripts as commands with their native shebang and not
  through bash. Not all debian package scripts uses bash, some
  of them uses sh which can be a link to dash or other
  interpreters. This Fixes #2660

- Update TW integration tests
  The package x86info was dropped from TW

- Turn DiskFormat into an ordinary class
  - it does not need to be an abstract base class
  - use f-strings where applicable instead of format()
  - change return type of _custom_args_for_format from list to tuple

- Add new containers section
  Allow to specify references to OCI containers in the
  image description like in the following example:
  <containers source="registry.suse.com" backend="podman">
  <container name="some" tag="some" path="/some/path"/>

OBS-URL: https://build.opensuse.org/request/show/1216728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=123
2024-10-22 12:51:17 +00:00
76d52ecb2c - Bump version: 10.1.14 → 10.1.15
- Fixed sphinx_rtd_theme setup
  Delete obsolete display_version attribute

- Evaluate eficsm everywhere
  Fixed _supports_bios_modules() to take an eventually
  provided eficsm setup into account. The grub config still
  searches for i386 grub modules even if eficsm="false"
  is set.

- Fixed debian bootstrap script calls
  Run scripts as commands with their native shebang and not
  through bash. Not all debian package scripts uses bash, some
  of them uses sh which can be a link to dash or other
  interpreters. This Fixes #2660

- Update TW integration tests
  The package x86info was dropped from TW

- Turn DiskFormat into an ordinary class
  - it does not need to be an abstract base class
  - use f-strings where applicable instead of format()
  - change return type of _custom_args_for_format from list to tuple

- Add new containers section
  Allow to specify references to OCI containers in the
  image description like in the following example:
  <containers source="registry.suse.com" backend="podman">
  <container name="some" tag="some" path="/some/path"/>

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=269
2024-10-21 13:08:51 +00:00
13329d0c02 - Bump version: 10.1.13 → 10.1.14
- Revert "Install usrmerge for Debian integration test"
  This reverts commit 95ac861741f14c4f35611c16328384c18e53dcfb.
  Solution needs to be provided in code

- Install usrmerge for Debian integration test

- Support older apt versions for bootstrap
  This Fixes #2660

- Run package scripts in apt bootstrap phase
  The bootstrap procedure based on apt only runs a manual
  collection of package scripts. This commit refactors the
  code that unpacks the bootstrap packages to a python
  implementation and adds a method to run the bootstrap
  scripts from all packages resolved by apt.

- Bump version: 10.1.12 → 10.1.13

- Fix bundle extension for vagrant type
  When bundling result files that uses a vagrant type,
  kiwi creates them with the extension .vagrant.virtualbox.box
  or .vagrant.libvirt.box. The bundler code renames them using
  only the .box suffix which is too short as it is missing
  the subformat information. This commit fixes it and keeps
  this information in the result bundle file name.
  This Fixes #2656

- Use simple quotas (squota) for volumes

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=268
2024-10-17 16:55:50 +00:00
Ana Guerrero
de2356cd7a Accepting request 1200859 from Virtualization:Appliances:Builder
- Bump version: 10.1.10 → 10.1.11

- doc: Add login information test build test images

- Bump version: 10.1.9 → 10.1.10

- bootloader: Fix up ppc64 bootinfo again
  To make the code look pretty extra newline is inserted at the start of
  bootinfo file. This appears to break boot on Power9 PowerVM LPARs.

- Add support for erofs
  erofs is an alternative readonly filesystem that can be
  used as alternative to squashfs. This Fixes #2633

- Fixed enclave integration test
  The SELinux policy of Fedora Rawhide when running completely in
  an initrd is not suitable to let the system boot up. Thus the
  current solution is to boot in permissive mode. A better solution
  for the future would probably be a selinux policy for enclaves

- limit eif_build requires to fedora >= 42

- Bump version: 10.1.8 → 10.1.9

- Added sshd to nitro-enclave integration test

- Fixed container sync options
  Do not exclude/filter any security/xattr capabilities.

- Update container integration test

OBS-URL: https://build.opensuse.org/request/show/1200859
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=122
2024-09-16 15:40:31 +00:00
49a568b92d - Bump version: 10.1.10 → 10.1.11
- doc: Add login information test build test images

- Add support for erofs
  erofs is an alternative readonly filesystem that can be
  used as alternative to squashfs. This Fixes #2633

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=267
2024-09-13 14:36:18 +00:00
e9d3441a5d - Bump version: 10.1.9 → 10.1.10
- bootloader: Fix up ppc64 bootinfo again
  To make the code look pretty extra newline is inserted at the start of
  bootinfo file. This appears to break boot on Power9 PowerVM LPARs.

- Fixed enclave integration test
  The SELinux policy of Fedora Rawhide when running completely in
  an initrd is not suitable to let the system boot up. Thus the
  current solution is to boot in permissive mode. A better solution
  for the future would probably be a selinux policy for enclaves

- limit eif_build requires to fedora >= 42

- Bump version: 10.1.8 → 10.1.9

- Added sshd to nitro-enclave integration test

- Fixed container sync options
  Do not exclude/filter any security/xattr capabilities.

- Update container integration test
  Add getcap to check on filesystem capabilities

- Add new build type provides for enclave
  Add a provides tag (read by the open buildservice) for the new
  enclave builder. Also add a recommends to eif_builder in
  the systemdeps-core meta package

- Update enclave documentation

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=266
2024-09-13 08:26:26 +00:00
48a8a26bfe - Bump version: 10.1.7 → 10.1.8
- Fixed enclave documentation
  Path to the build test was not correct

- Update test-image-nitro-enclave package list
  Fixup package list to match Fedora rawhide

- Move test-image-nitro-enclave to rawhide

- Fix ppc64 chrp bootinfo generation

- Fixed documentation header
  Fixed double H1 headers from the boxbuild tweaks chapter.

- Add new builder for enclaves
  Add new EnclaveBuilder class which allows to build initrd-only
  image types. The first enclave implementation covers aws-nitro
  images produced via the eif_build tooling.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=265
2024-09-10 13:37:58 +00:00
2765698149 - Bump version: 10.1.6 → 10.1.7
- Move EXEC log message to the right place
  The log information of the command execution was not printed
  directly before the actual command invocation. There are other
  actions after the log information (e.g Path.which) which itself
  produce log information prior the real subprocess execution.
  This is very misleading when reading the log file and fixed
  in this commit.

- Add support for architectures in deb source file
  When apt resolves packages on a multiarch repo it can happen
  that dependencies for packages from other architectures are
  pulled into the solver process but are not provided by any
  repository. To overcome this behavior the repository can
  be setup to serve packages only for a specified architecture
  or list of architectures. This is related to
  OSInside/kiwi-descriptions#102

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=264
2024-09-09 13:36:51 +00:00
Ana Guerrero
553056c40a Accepting request 1199243 from Virtualization:Appliances:Builder
- Bump version: 10.1.5 → 10.1.6

- add allowExtraConfig and exportFlags to ovftool options
  Add allowExtraConfig and exportFlags to ovftool options

- Bump version: 10.1.4 → 10.1.5

- create EFI/BOOT only if UEFI boot is intended

- Fix boot support for ISO media on ppc64
  add CHRP boot support for ppc64 and add xorriso option to avoid
  file name reduction to MS-DOS compatible 8.3 format

- Fix initrd permissions
  kiwi stored the initrd for ISO images as 600 which might
  be too restrictive. This commit makes sure the initrd is
  stored as 644 and Fixes bsc#1229257

- Fixed ramdisk size setup
  For setting up the brd rd_size option kiwi creates
  99-brd.conf used at load time of the kernel brd driver.
  The location for the conf file is set to /etc/modprobe.d/
  However, in newer versions the location has changed to
  /usr/lib/modprobe.d/ and /etc/modprobe.d is no longer
  expected to exist. This commit makes sure /etc/modprobe.d
  is created if not present.

OBS-URL: https://build.opensuse.org/request/show/1199243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=121
2024-09-08 09:59:23 +00:00
8f5389b2d0 - Bump version: 10.1.5 → 10.1.6
- add allowExtraConfig and exportFlags to ovftool options
  Add allowExtraConfig and exportFlags to ovftool options

- Fixed ramdisk size setup
  For setting up the brd rd_size option kiwi creates
  99-brd.conf used at load time of the kernel brd driver.
  The location for the conf file is set to /etc/modprobe.d/
  However, in newer versions the location has changed to
  /usr/lib/modprobe.d/ and /etc/modprobe.d is no longer
  expected to exist. This commit makes sure /etc/modprobe.d
  is created if not present.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=263
2024-09-06 08:44:26 +00:00
420b4c428e - Bump version: 10.1.4 → 10.1.5
- create EFI/BOOT only if UEFI boot is intended

- Fix boot support for ISO media on ppc64
  add CHRP boot support for ppc64 and add xorriso option to avoid
  file name reduction to MS-DOS compatible 8.3 format

- Fix initrd permissions
  kiwi stored the initrd for ISO images as 600 which might
  be too restrictive. This commit makes sure the initrd is
  stored as 644 and Fixes bsc#1229257

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=262
2024-09-05 12:45:37 +00:00
Dominique Leuenberger
60d7986fe3 Accepting request 1198422 from Virtualization:Appliances:Builder
- Bump version: 10.1.3 → 10.1.4

- Add note about guestOS values for vmware ovftools.

- Add note about guestOS values for vmware platform.

- Fixed resize of dos table type on s390
  On s390, parted is used to detect the partition table type.
  In contrast to blkid the name for DOS tables is reported
  as 'msdos' and not 'dos' which impacts several conditions
  in the kiwi initrd code which checks for 'dos'. This commit
  fixes the get_partition_table_type() method to return a
  consistent table name for DOS tables. This Fixes bsc#1228729

- Revert "remove dependency on /usr/bin/python"
  This reverts commit 15b450188483b567ca10bb459bf50ed90e905bb7.
  The change provided here entirely broke kiwi in OBS. With this
  patch applied every image build in OBS fails with the following
  message: 'line 1: /usr/sbin/kiwi: No such file or directory'

- Bump version: 10.1.2 → 10.1.3

- Fix bundle extension for archive types
  When bundling result files that uses an archive type like
  tbz or docker, kiwi creates them with the extension tar.xz/tar.gz
  The bundler code only uses the extension from the last tuple
  in a "." split which is wrong for "tar." filenames. This commit
  adds an exception to the prefix rule for this output filenames
  and Fixes #2628

OBS-URL: https://build.opensuse.org/request/show/1198422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=120
2024-09-04 11:22:17 +00:00
27c02486fb - Bump version: 10.1.3 → 10.1.4
- Add note about guestOS values for vmware ovftools.

- Add note about guestOS values for vmware platform.

- Fixed resize of dos table type on s390
  On s390, parted is used to detect the partition table type.
  In contrast to blkid the name for DOS tables is reported
  as 'msdos' and not 'dos' which impacts several conditions
  in the kiwi initrd code which checks for 'dos'. This commit
  fixes the get_partition_table_type() method to return a
  consistent table name for DOS tables. This Fixes bsc#1228729

- Revert "remove dependency on /usr/bin/python"
  This reverts commit 15b450188483b567ca10bb459bf50ed90e905bb7.
  The change provided here entirely broke kiwi in OBS. With this
  patch applied every image build in OBS fails with the following
  message: 'line 1: /usr/sbin/kiwi: No such file or directory'

- Bump version: 10.1.2 → 10.1.3

- Fix bundle extension for archive types
  When bundling result files that uses an archive type like
  tbz or docker, kiwi creates them with the extension tar.xz/tar.gz
  The bundler code only uses the extension from the last tuple
  in a "." split which is wrong for "tar." filenames. This commit
  adds an exception to the prefix rule for this output filenames
  and Fixes #2628

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=261
2024-09-03 07:47:01 +00:00
Dominique Leuenberger
d141c2c4f9 Accepting request 1194146 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1194146
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=119
2024-08-16 10:22:59 +00:00
9583babeae - Bump version: 10.1.1 → 10.1.2
- Improve error reporting for remote deployment
  Add new method called show_log_and_quit which displays
  the written error log file as a file box to the user

- Update test-image-orthos integration test
  Update the test such that you can also build it locally.
  Change the remote installation target to be a ramdisk
  for easy testing of remote deployments

- Setup default minimum volume size per filesystem
  The former method provided a static value but there are huge
  differences for the minimum size requirement of a filesystem.
  For example extX is fine with 30MB whereas XFS requires 300MB.
  This commit adds a more dynamic default value based on the
  used filesystem.

- Increase default volume size
  So far 30MB was set as default volume size which is by far
  too small for a number of filesystems, e.g btrfs and also XFS.
  This commit increases the default volume size such that all
  modern filesystems builds if the default volume size is used.

- Update test-image-raid
  Apart from testing raid this integration test also tests
  a certain LVM volume setup. The test has been updated
  to use the btrfs filesystem because it has the most strict
  size requirements.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=260
2024-08-09 08:14:17 +00:00
aaaefae804 - Bump version: 10.1.0 → 10.1.1
- Mandatory package scripts for Debian bootstrap
  Make sure to run some mandatory package pre/post scripts
  such that settings like /etc/passwd, a root user, etc..
  exists. This action can also be done in post_bootstrap.sh
  but I think it's better to do this in the core code

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=259
2024-08-06 10:10:22 +00:00
4b1cd4fd46 - Bump version: 10.0.28 → 10.1.0
- kiwi no longer uses debootstrap
  For building Debian based images we used debootstrap to
  bootstrap an empty root until apt-get could be used to
  complete the job. This has now changed such hat apt-get
  is also used for bootstrapping a new system. The concept
  and also potential alternatives to the way kiwi bootstraps
  Debian based systems can be found here:
  * https://osinside.github.io/kiwi/working_with_images/build_without_debianbootstrap.html
  Due to the drop of debootstrap it might happen that
  package lists of existing image descriptions needs to be
  extended with packages that were formerly pulled in by
  debootstrap but did not get properly pulled in with the
  new apt based bootstrap. As reference please check out the
  integration tests from here:
  * https://github.com/OSInside/kiwi/tree/main/build-tests/x86/ubuntu
  * https://github.com/OSInside/kiwi/tree/main/build-tests/x86/debian
  Thanks

- Bump version: 10.0.27 → 10.0.28

- Update documentation
  kiwi no longer uses debootstrap

- Fix test_process_result_bundle_as_rpm

- Fix Debian/Ubuntu integration tests
  Remove package hacks for debootstrap, explicitly add
  required packages and or configurations.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=258
2024-08-05 08:01:15 +00:00
Dominique Leuenberger
fffedecc35 Accepting request 1190403 from Virtualization:Appliances:Builder
- Bump version: 10.0.26 → 10.0.27

- Fix dracut-interactive with systemd 256
  With systemd 256, /usr (and thus also /bin/) is read-only in the initrd.
  Move dracut-interactive and its .service into /run instead.

- Bump version: 10.0.25 → 10.0.26

- Revise scripts_testing.rst

- Revise schema_extensions.rst

- Pass kernel cmdline to agama
  In the agama integration test make sure to pass along
  the kernel boot parameters to allow controlling the
  behavior of agama better

- Add <file> directive to incorporate custom files
  Usually custom files are managed by placing them as overlay
  files or archives. However, overlay files must be structured
  inside of a root/ subdirectory and archive files are binary
  data. It is therefore not straight forward to just reference
  one or more files as source files to the image description
  to be placed into the image. This commit adds a new <file>
  element which allows to do this. This Fixes #1953

- kiwi_plugin_architecture.rst

- Revise kiwi_from_python.rst

OBS-URL: https://build.opensuse.org/request/show/1190403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=118
2024-07-30 09:53:52 +00:00
671208422f - Bump version: 10.0.26 → 10.0.27
- Fix dracut-interactive with systemd 256
  With systemd 256, /usr (and thus also /bin/) is read-only in the initrd.
  Move dracut-interactive and its .service into /run instead.

- Bump version: 10.0.25 → 10.0.26

- Revise scripts_testing.rst

- Revise schema_extensions.rst

- Pass kernel cmdline to agama
  In the agama integration test make sure to pass along
  the kernel boot parameters to allow controlling the
  behavior of agama better

- Add <file> directive to incorporate custom files
  Usually custom files are managed by placing them as overlay
  files or archives. However, overlay files must be structured
  inside of a root/ subdirectory and archive files are binary
  data. It is therefore not straight forward to just reference
  one or more files as source files to the image description
  to be placed into the image. This commit adds a new <file>
  element which allows to do this. This Fixes #1953

- kiwi_plugin_architecture.rst

- Revise kiwi_from_python.rst

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=257
2024-07-30 07:49:17 +00:00
Ana Guerrero
305c666bb5 Accepting request 1188893 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1188893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=117
2024-07-22 15:14:15 +00:00
324f3c0550 - Bump version: 10.0.24 → 10.0.25
- Fix mocking of test_process_result_bundle_as_rpm

- Fixed logging behavior of Compress::get_format
  The get_format() method allows to check which compression format
  a given input stream has. This is done by calling the supported
  compression tools in a row and let them check if they can deal
  with the provided data or not. As a result error messages are
  logged for streams that some tool doesn't understand. However,
  those error messages are no errors and only the result of the
  checking. This information in the kiwi log file is confusing
  and several users already complained when they see information
  like:
  EXEC: Failed with stderr: /usr/bin/xz: ...: File format not recognized
  This commit changes how the compression tooling is called in a
  way that no exception is raised (which leads to the above error message)
  but the result returncode is used to decide on the success or
  error of the respective compression tooling.

- Allow to set custom ISO Application ID
  Add new <type ... application_id="..."/> attribute to be set in
  the ISO header main block. The application ID was used as identifier
  in the legacy initrd code from former kiwi versions. Because of
  this there is still the compat layer which sets an App ID as MBR
  identifier string unless the new application_id overwrites it.
  This Fixes #1810

- Bump version: 10.0.23 → 10.0.24

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=256
2024-07-14 09:20:43 +00:00
Ana Guerrero
a7f08d1b1b Accepting request 1185374 from Virtualization:Appliances:Builder
- Bump version: 10.0.22 → 10.0.23

- package: Add fully qualified provides for python3-kiwi in spec
  On SUSE distributions, currently the expectation is that packages
  built against the Python interpreter should have fully qualified
  names in the form of pythonXY-<modulename>. Additionally, all other
  Linux distributions prefer something similar in the form of
  pythonX.Y-<modulename>.
  This ensures we have those names so that distribution dependency
  generation works as expected.

- Add support for arch selector on volumes
  The optional <volume ... arch=""/> attribute allows to create
  the volume only if it matches the specified host architecture.
  Multiple architecture names can be specified as comma separated
  list.

- Add rd.kiwi.oem.force_resize boot option
  Forces the disk resize process on an OEM disk image.
  If set, no sanity check for unpartitioned/free space
  is performed and also an eventually configured
  <oem-resize-once> configuration from the image description
  will not be taken into account. This Fixes bsc#1224389

- Fixed leap integration tests
  For whatever reason procps is not longer pulled in by the
  core dependencies. Thus we have to explicitly request it

- Fix potential race condition in loop detach
  The call to 'losetup -d' is in fact an async operation. Once

OBS-URL: https://build.opensuse.org/request/show/1185374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=116
2024-07-05 17:45:01 +00:00
6a08a3aac0 - Bump version: 10.0.22 → 10.0.23
- package: Add fully qualified provides for python3-kiwi in spec
  On SUSE distributions, currently the expectation is that packages
  built against the Python interpreter should have fully qualified
  names in the form of pythonXY-<modulename>. Additionally, all other
  Linux distributions prefer something similar in the form of
  pythonX.Y-<modulename>.
  This ensures we have those names so that distribution dependency
  generation works as expected.

- Add support for arch selector on volumes
  The optional <volume ... arch=""/> attribute allows to create
  the volume only if it matches the specified host architecture.
  Multiple architecture names can be specified as comma separated
  list.

- Add rd.kiwi.oem.force_resize boot option
  Forces the disk resize process on an OEM disk image.
  If set, no sanity check for unpartitioned/free space
  is performed and also an eventually configured
  <oem-resize-once> configuration from the image description
  will not be taken into account. This Fixes bsc#1224389

- Fixed leap integration tests
  For whatever reason procps is not longer pulled in by the
  core dependencies. Thus we have to explicitly request it

- Fix potential race condition in loop detach
  The call to 'losetup -d' is in fact an async operation. Once

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=255
2024-07-04 11:08:06 +00:00
Ana Guerrero
89dca7691b Accepting request 1179969 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1179969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=115
2024-06-12 13:37:28 +00:00
Ana Guerrero
8e11e85d02 Accepting request 1177852 from Virtualization:Appliances:Builder
- Bump version: 10.0.18 → 10.0.19

- package: Always include patches and number all sources and patches
  This ensures that stuff is applied reliably and all sources and patches
  are included as expected.
  Then the added kiwi-revert-bls-default-for-suse.patch is applied
  conditionally for SUSE distributions.

- Bump version: 10.0.17 → 10.0.18

- package: adjust openSUSE patch

- Bump version: 10.0.16 → 10.0.17

- Fixed box plugin documentation
  The provided example was no longer correct according to
  changes on the image description referenced in the example

- Add procps to Tumbleweed integration tests

- Add procps to Tumbleweed integration tests

- Fix sdist upstream tarball contents
  The .virtualenv.dev-requirements.txt file is referenced by tox.ini
  but not put into the sdist tarball and therefore missing in the
  pypi upstream data.

- Drop use of obsolete pkg_resources
  As documented in https://setuptools.pypa.io/en/latest/pkg_resources.html
  the use of pkg_resources is obsolete and will cause issues.

OBS-URL: https://build.opensuse.org/request/show/1177852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=114
2024-06-04 10:50:39 +00:00
7663391cc5 - Bump version: 10.0.20 → 10.0.21
- Add missing write_meta_data method to BLS base
  The standard bootloader interface class provided a method
  named write_meta_data which is expected to be implemented
  in the specialized bootloader implementation. For BLS
  bootloaders this method was missing in the BLS base class.
  write_meta_data can provide additional cmdline options
  for booting. If not covered some boot options might be
  missing. This patch fixes it

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=254
2024-06-04 09:16:14 +00:00
c492db8580 - Fix TW integration test to build outside OBS
- Make sure BootLoaderConfig fixes are effective
  The BootLoaderConfigGrub2 class has methods to fix the grub-mkconfig
  generated files. It does that by mounting the system and changing the
  respective files after the mkconfig call. However, after the change
  the class instance stays open in combination with BootLoaderInstallGrub2
  instance which itself under certain circumstances also mounts the
  system to call grub-install. At the time grub-install is called it
  cannot be guaranteed that all changes has been written unless an
  explicit umount in the BootLoaderConfigGrub2 class instance happened.
  This commit address the potential race condition.

- Bump version: 10.0.19 → 10.0.20

- Update rawhide integration test
  Use new arch attribute for testing in the repository
  element of the rawhide/test-image-live-disk integration
  test.

- Add support for arch attr in repository element
  Allow to provide different repository sections per architecture

- Add --list-profiles to image info
  Allow to list available profiles from the processed image
  description

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=253
2024-06-04 07:22:44 +00:00
d91aa3a4e8 - Bump version: 10.0.18 → 10.0.19
- package: Always include patches and number all sources and patches
  This ensures that stuff is applied reliably and all sources and patches
  are included as expected.
  Then the added kiwi-revert-bls-default-for-suse.patch is applied
  conditionally for SUSE distributions.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=252
2024-05-31 07:39:42 +00:00
101edab20a - Bump version: 10.0.17 → 10.0.18
- package: adjust openSUSE patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=251
2024-05-29 16:28:19 +00:00
76dec26bf7 - Bump version: 10.0.16 → 10.0.17
- Fixed box plugin documentation
  The provided example was no longer correct according to
  changes on the image description referenced in the example

- Add procps to Tumbleweed integration tests

- Add procps to Tumbleweed integration tests

- Fix sdist upstream tarball contents
  The .virtualenv.dev-requirements.txt file is referenced by tox.ini
  but not put into the sdist tarball and therefore missing in the
  pypi upstream data.

- Drop use of obsolete pkg_resources
  As documented in https://setuptools.pypa.io/en/latest/pkg_resources.html
  the use of pkg_resources is obsolete and will cause issues.
  So happened on Debian unstable. This Fixes #2548

- RepositoryDnf5: correct defaults, set system_cachedir
  The "defaults" in `use_default_location` here are the dnf4
  defaults, not the dnf5 defaults, so let's update them. Also, for
  dnf5, we need to set `system_cachedir` instead of `cachedir` -
  see https://dnf5.readthedocs.io/en/latest/misc/caching.7.html ,
  `system_cachedir` is the cache location used when running as
  root, `cachedir` is the cache location used when running as a
  regular user.
  Signed-off-by: Adam Williamson <awilliam@redhat.com>

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=250
2024-05-29 13:23:45 +00:00
72c6b92239 - Fix spec file
Require docopt-ng for Fedora 41+

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=249
2024-05-08 12:59:40 +00:00