Commit Graph

229 Commits

Author SHA256 Message Date
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
Dominique Leuenberger
481142a499 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
Marcus Schaefer
cf18206513 - Bump version: 9.18.11 → 9.18.12
- Added MicroOS integration test
  The future technologies team is implementing a coreOS derivate
  based on btrfs and some overlay technology. For supporting them
  some changes were required in kiwi and thus we should add an
  integration test build which makes use of this features.

- Add required cryptomount coding for EFI boot
  For non EFI boot grub2-install has code which gets activated
  through the GRUB_ENABLE_CRYPTODISK setting. However for the
  EFI boot case no installation of boot code is needed and
  therefore the grub earlyboot script has to run cryptomount

- Add /mnt to list of protected paths
  On recursive removal make sure /mnt belong to the protected
  elements. This Fixes #1170

- Added full encrypted image build test

- Extended LUKS encryption support
  We supported luks encrypted images with the exception of the
  boot partition because grub was not able to read from an
  encrypted device at that time. Since some time grub is able
  to read from an encrypted partition and this commit add
  support for it. With this patch luks encrypted images will
  no longer create an extra boot partition and the entire
  system will be encrypted. The opening of the luks container
  happens on the grub level only once. Customers can still
  specify to use an unencrypted extra boot partition with the

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=147
2019-08-20 15:22:10 +00:00
Dominique Leuenberger
6a720eef61 Accepting request 722592 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

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

OBS-URL: https://build.opensuse.org/request/show/722592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=46
2019-08-14 09:36:30 +00:00
Dominique Leuenberger
4905717a57 Accepting request 720209 from Virtualization:Appliances:Builder
- Bump version: 9.18.8 → 9.18.9

- Fixed left over import of six module
  The use of the six compat module was needed to support py2
  With the drop of py2 support all of six was no longer needed.
  However this one was overlooked.

- 99-kiwi-lib requires rmdir, install it
  Fixes bsc#1143033

- Bump version: 9.18.7 → 9.18.8

- Added multiconsole setup to Fedora build test

- Allow multiple values for grub terminal setup
  With regards to the grub documentation from
  https://www.gnu.org/software/grub/manual/grub/grub.html#terminal_005finput
  multiple terminal consoles can be active. This patch allows
  to specify terminal collection between serial, console and gfxterm
  This Fixes #1123

- Bump version: 9.18.6 → 9.18.7

- Fixed use of Command calls in destructors
  The Command class creates namedtuple to store the result
  of the call. That tuple is created inside of the Command
  namespace. If called inside of a __del__ destructor which
  is often the case in kiwi classes I recently observed an
  exception from python saying:
  File "/usr/lib64/python3.6/collections/__init__.py", line 429, in namedtuple

OBS-URL: https://build.opensuse.org/request/show/720209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=45
2019-08-07 11:56:51 +00:00
Dominique Leuenberger
721efd4e38 Accepting request 720209 from Virtualization:Appliances:Builder
- Bump version: 9.18.8 → 9.18.9

- Fixed left over import of six module
  The use of the six compat module was needed to support py2
  With the drop of py2 support all of six was no longer needed.
  However this one was overlooked.

- 99-kiwi-lib requires rmdir, install it
  Fixes bsc#1143033

- Bump version: 9.18.7 → 9.18.8

- Added multiconsole setup to Fedora build test

- Allow multiple values for grub terminal setup
  With regards to the grub documentation from
  https://www.gnu.org/software/grub/manual/grub/grub.html#terminal_005finput
  multiple terminal consoles can be active. This patch allows
  to specify terminal collection between serial, console and gfxterm
  This Fixes #1123

- Bump version: 9.18.6 → 9.18.7

- Fixed use of Command calls in destructors
  The Command class creates namedtuple to store the result
  of the call. That tuple is created inside of the Command
  namespace. If called inside of a __del__ destructor which
  is often the case in kiwi classes I recently observed an
  exception from python saying:
  File "/usr/lib64/python3.6/collections/__init__.py", line 429, in namedtuple

OBS-URL: https://build.opensuse.org/request/show/720209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=45
2019-08-07 11:56:51 +00:00
2e450ea010 - Bump version: 9.18.9 → 9.18.10
- Align setup.py with the correct license

- Pass components to debootstrap call
  If repo components are specified the collective list of
  component names should be passed to the debootstrap call.
  This Fixes #1157

- Update image name for s390 oem integration test
  Align image name to the schema we use for all other
  integration tests

- Fixed zipl bootloader setup
  targetgeometry not allowed for targettype SCSI

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=146
2019-08-06 12:16:48 +00:00
Marcus Schaefer
87ba79331b - Bump version: 9.18.8 → 9.18.9
- Fixed left over import of six module
  The use of the six compat module was needed to support py2
  With the drop of py2 support all of six was no longer needed.
  However this one was overlooked.

- 99-kiwi-lib requires rmdir, install it
  Fixes bsc#1143033

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=145
2019-07-26 14:26:02 +00:00
Marcus Schaefer
a239b6cd3e - Bump version: 9.18.7 → 9.18.8
- Added multiconsole setup to Fedora build test

- Allow multiple values for grub terminal setup
  With regards to the grub documentation from
  https://www.gnu.org/software/grub/manual/grub/grub.html#terminal_005finput
  multiple terminal consoles can be active. This patch allows
  to specify terminal collection between serial, console and gfxterm
  This Fixes #1123

- Bump version: 9.18.6 → 9.18.7

- Fixed use of Command calls in destructors
  The Command class creates namedtuple to store the result
  of the call. That tuple is created inside of the Command
  namespace. If called inside of a __del__ destructor which
  is often the case in kiwi classes I recently observed an
  exception from python saying:
  File "/usr/lib64/python3.6/collections/__init__.py", line 429, in namedtuple
  File "<string>", line 1, in <module>
  ModuleNotFoundError: import of builtins halted; None in sys.modules
  I do not understand why this is a problem for python now
  and only found the solution in making the command_type variable
  a global namedtuple.

- Bump version: 9.18.5 → 9.18.6

- Fix the pyxattr dependency to allow kiwi to function
  Most Linux distributions offer the pyxattr module, including

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=144
2019-07-26 08:54:42 +00:00
Dominique Leuenberger
e2dad60709 Accepting request 715449 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/715449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=44
2019-07-17 12:23:05 +00:00
Dominique Leuenberger
8d5914f4a4 Accepting request 715449 from Virtualization:Appliances:Builder
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/715449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=44
2019-07-17 12:23:05 +00:00
Dominique Leuenberger
edd44848c6 Accepting request 713571 from Virtualization:Appliances:Builder
- Bump version: 9.17.40 → 9.17.41

- Update Boot From Hard Disk method
  Instead of searching for an efi binary to boot, use the exit method
  that exits from grub and let the firmware choose the next entry
  in the device list

- Do not crash on missing HOME

- Added live ISO integration tests for arm

- Consolidate syslinux file names and search paths
  Handle those file names and search path in the Defaults space
  and only once in the code

- Remove '^' which break BaseStripFirmware function (boo#1132455)

- Do not supress output for dracut call
  This commit adds a stderr_to_stdout option to Command.run method to
  redirect stderr to stdout.
  Additionally this commit also includes to the debug log the dracut
  call output, including both, stderr and stdout.
  Fixes #1114

- Fixed path_test unit test
  The code there checked for the message of an exception
  but recent changes in pytest did not allow to do it that
  way anymore.

- Fixed zipl bootloader setup

OBS-URL: https://build.opensuse.org/request/show/713571
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=43
2019-07-08 13:00:31 +00:00
Dominique Leuenberger
5099adf049 Accepting request 713571 from Virtualization:Appliances:Builder
- Bump version: 9.17.40 → 9.17.41

- Update Boot From Hard Disk method
  Instead of searching for an efi binary to boot, use the exit method
  that exits from grub and let the firmware choose the next entry
  in the device list

- Do not crash on missing HOME

- Added live ISO integration tests for arm

- Consolidate syslinux file names and search paths
  Handle those file names and search path in the Defaults space
  and only once in the code

- Remove '^' which break BaseStripFirmware function (boo#1132455)

- Do not supress output for dracut call
  This commit adds a stderr_to_stdout option to Command.run method to
  redirect stderr to stdout.
  Additionally this commit also includes to the debug log the dracut
  call output, including both, stderr and stdout.
  Fixes #1114

- Fixed path_test unit test
  The code there checked for the message of an exception
  but recent changes in pytest did not allow to do it that
  way anymore.

- Fixed zipl bootloader setup

OBS-URL: https://build.opensuse.org/request/show/713571
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=43
2019-07-08 13:00:31 +00:00
Marcus Schaefer
45fe10bac1 - Bump version: 9.17.41 → 9.17.42
- Fixed get_persistent_device_from_unix_node
  The method get_persistent_device_from_unix_node takes a device
  path and looks up it's basename to be present as persistent
  variant below the given schema, e.g by-id. However if the
  method receives an already persistent device path e.g from
  /dev/mapper the persistent schema representation will only
  match a numbered dm-N device and not the map name. The method
  then returns nothing but should return the original device
  path. This caused bad after effects like reported in
  Issue SUSE-Enceladus/azure-li-services#163

- [doc] Add user documentation about the usage of the embedded Vagrantfile
  - Document the usage of the `vagrantconfig.embedded_vagrantfile` attribute
  - Remove the suggestion to generate the ssh keys during image creation (this
  results in **all** boxes having the same ssh host keys, which is pretty
  dangerous if someone would use a vagrant box in a production environment.)
  - Stop recommending veewee, this project is dead
  - Replace forgotten hard coded number with {schema_version}

- Fix test breakage when /etc/kiwi.yml is present
  The unit test for the RuntimeConfig class are also testing the default values in
  some functions. To work around a possibly existing ~/.config/kiwi/config.yml,
  several functions change the value of HOME. This is unfortunately not
  sufficient if a /etc/kiwi.yml exists, as that one is taken as a fallback *if*
  ~/.config/kiwi/config.yml isn't present.
  This issue is fixed by creating a default_runtime_config with os.path.exists
  patched to return False. Thereby none of the runtime configuration files will be
  taken into account.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=143
2019-07-08 10:24:17 +00:00
Marcus Schaefer
62db469641 - Bump version: 9.17.40 → 9.17.41
- Update Boot From Hard Disk method
  Instead of searching for an efi binary to boot, use the exit method
  that exits from grub and let the firmware choose the next entry
  in the device list

- Do not crash on missing HOME

- Added live ISO integration tests for arm

- Consolidate syslinux file names and search paths
  Handle those file names and search path in the Defaults space
  and only once in the code

- Remove '^' which break BaseStripFirmware function (boo#1132455)

- Do not supress output for dracut call
  This commit adds a stderr_to_stdout option to Command.run method to
  redirect stderr to stdout.
  Additionally this commit also includes to the debug log the dracut
  call output, including both, stderr and stdout.
  Fixes #1114

- Fixed path_test unit test
  The code there checked for the message of an exception
  but recent changes in pytest did not allow to do it that
  way anymore.

- Fixed zipl bootloader setup

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=142
2019-07-05 08:30:44 +00:00
Dominique Leuenberger
8d80bfc755 Accepting request 705193 from Virtualization:Appliances:Builder
- Bump version: 9.17.38 → 9.17.39

- Update obs docs per review by Tom

- Disable check-valid-until with repository_gpgcheck
  This commit is two fold:
  * From one side fixes a wrong use of the `trusted` option for
  apt repositories. `trusted=no` does not force to run the gpg checks
  it just forces the repository to be considered untrusted regardless
  the result of the security checks.
  * From the other side it disables the option `check-valid-until` in
  case gpg checks are disabled using the `repository_gpgcheck`. It
  works at repository level. This enables using unmaintained or
  expired repositories for the build.
  Fixes #1028

- Simplify shell pipe expression with shell builtin
  Replace "echo $var | sed ..." expression with ${var//SEARCH/REPLACE}
  shell builtin as suggested by Codacy

- Make mediacheck runtime check arch independent
  The check_mediacheck_only_for_x86_arch runtime check fails on
  non x86 architectures but the tagmedia toolchain exists independent
  of the platform architecture. This Fixes #1091

- Set home as protected path
  Along with adding home to the protection list, cleanup
  the prepare instance cleanup code in a way that it only
  runs if a root_bind object exists which needs to call
  its cleanup path

OBS-URL: https://build.opensuse.org/request/show/705193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=42
2019-05-27 06:28:39 +00:00
Dominique Leuenberger
9042a2d9e0 Accepting request 705193 from Virtualization:Appliances:Builder
- Bump version: 9.17.38 → 9.17.39

- Update obs docs per review by Tom

- Disable check-valid-until with repository_gpgcheck
  This commit is two fold:
  * From one side fixes a wrong use of the `trusted` option for
  apt repositories. `trusted=no` does not force to run the gpg checks
  it just forces the repository to be considered untrusted regardless
  the result of the security checks.
  * From the other side it disables the option `check-valid-until` in
  case gpg checks are disabled using the `repository_gpgcheck`. It
  works at repository level. This enables using unmaintained or
  expired repositories for the build.
  Fixes #1028

- Simplify shell pipe expression with shell builtin
  Replace "echo $var | sed ..." expression with ${var//SEARCH/REPLACE}
  shell builtin as suggested by Codacy

- Make mediacheck runtime check arch independent
  The check_mediacheck_only_for_x86_arch runtime check fails on
  non x86 architectures but the tagmedia toolchain exists independent
  of the platform architecture. This Fixes #1091

- Set home as protected path
  Along with adding home to the protection list, cleanup
  the prepare instance cleanup code in a way that it only
  runs if a root_bind object exists which needs to call
  its cleanup path

OBS-URL: https://build.opensuse.org/request/show/705193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=42
2019-05-27 06:28:39 +00:00
Marcus Schaefer
e4eb1bbcfd - Bump version: 9.17.38 → 9.17.39
- Update obs docs per review by Tom

- Disable check-valid-until with repository_gpgcheck
  This commit is two fold:
  * From one side fixes a wrong use of the `trusted` option for
  apt repositories. `trusted=no` does not force to run the gpg checks
  it just forces the repository to be considered untrusted regardless
  the result of the security checks.
  * From the other side it disables the option `check-valid-until` in
  case gpg checks are disabled using the `repository_gpgcheck`. It
  works at repository level. This enables using unmaintained or
  expired repositories for the build.
  Fixes #1028

- Simplify shell pipe expression with shell builtin
  Replace "echo $var | sed ..." expression with ${var//SEARCH/REPLACE}
  shell builtin as suggested by Codacy

- Make mediacheck runtime check arch independent
  The check_mediacheck_only_for_x86_arch runtime check fails on
  non x86 architectures but the tagmedia toolchain exists independent
  of the platform architecture. This Fixes #1091

- Set home as protected path
  Along with adding home to the protection list, cleanup
  the prepare instance cleanup code in a way that it only
  runs if a root_bind object exists which needs to call
  its cleanup path

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=141
2019-05-24 08:55:07 +00:00
Marcus Schaefer
6f4609c799 - Bump version: 9.17.37 → 9.17.38
- Delete obsolete repository types
  Deleted red-carpet, slack-site, up2date-mirrors, urpmi and yast2
  from the allowed values list of the repository type attribute.
  This Fixes #1029

- Fixed build_in_buildservice stale references
  Fixed style issues reported on sphinx build. Also deleted
  pointers to non existing references

- Delete suseRemovePackagesMarkedForDeletion
  Any package removal is controlled by kiwi itself. There is no
  need to provide a shell helper method that is rpm specific.
  This Fixes #1054

- Update doc/source/building/build_in_buildservice.rst
  Co-Authored-By: dcermak <45594031+dcermak@users.noreply.github.com>

- Rework documentation about building on OBS

- Added integration test guest image for OpenStack

- Update suse integration tests per Factory changes
  The way plymouth themes are provided has changed on suse.
  The package plymouth-branding-openSUSE is no longer providing
  the theme named openSUSE. In fact the plan is to switch to
  the upstream bgrt theme which is provided in another package.
  This commit adapts to the changes in the distribution

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=140
2019-05-13 14:37:08 +00:00
Dominique Leuenberger
5d370e18a4 Accepting request 693276 from Virtualization:Appliances:Builder
Needed to fix image building.

OBS-URL: https://build.opensuse.org/request/show/693276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=41
2019-04-17 08:05:18 +00:00
Dominique Leuenberger
ac386dc2c9 Accepting request 693276 from Virtualization:Appliances:Builder
Needed to fix image building.

OBS-URL: https://build.opensuse.org/request/show/693276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=41
2019-04-17 08:05:18 +00:00
Marcus Schaefer
cfe60ca4ac - Bump version: 9.17.36 → 9.17.37
- Fix rpm metadata creation
  There are rpm versions that require access to /dev and fail
  with the error message 'Failed to initialize NSS library'
  For details see: https://bugs.centos.org/view.php?id=14767
  Due to the rpm location checkup fix from Issue #1037 this
  change impacts builds for distributions that uses an rpm
  version with the above behavior (e.g CentOS) and fails as
  consequence of the rpm call error. This commit fixes this
  in a way that we make sure the host /dev is available at
  the time of the call.

- Bump version: 9.17.35 → 9.17.36

- Fix xml syntax on documentation example

- Add custom curl options docs

- Refactor handling of runtime tests check dict
  Consolidate check list into CliTask base class such that we
  can avoid duplication of runtime check dicts. Only runtime
  tests that require stateful information according to the
  commandline call are handled directly in the task code

- Delete check_grub_efi_installed_for_efi_firmware
  The motivation is nice to check if the required grub module
  package is part of the package list if the efi firmware is
  requested, but as long as there is no distribution wide
  standard for packaging grub this check will cause more trouble

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=139
2019-04-11 12:07:18 +00:00
Dominique Leuenberger
f52dd293ff Accepting request 692540 from Virtualization:Appliances:Builder
Update kiwi - the current version in TW is two months old!

OBS-URL: https://build.opensuse.org/request/show/692540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=40
2019-04-11 10:15:06 +00:00
Dominique Leuenberger
2eedb6399c Accepting request 692540 from Virtualization:Appliances:Builder
Update kiwi - the current version in TW is two months old!

OBS-URL: https://build.opensuse.org/request/show/692540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=40
2019-04-11 10:15:06 +00:00
5114d0e17c osc copypac from project:Virtualization:Appliances:Staging package:python-kiwi revision:133
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=138
2019-04-04 12:55:22 +00:00
Marcus Schaefer
7a81004d47 - Bump version: 9.17.33 → 9.17.34
- kiwi-repart: avoid race between repart and fsck
  See issue #1034, this fixes non-booting CentOS-7 OEM images that fail
  during repartition / FS resize.
  Summary: all parted actions trigger a rescan of partition tables and
  this repeatedly starts / stops systemd-fsck-root.service until it
  finally fails. The workaround is to mask systemd-fsck-root.service
  during repartitioning / FS resize.

- Update travis doc building target
  Disable doc test on travis, we have this in the gitlab-ci
  pipeline.

- Move sphinx config to python3
  Disable modules that have not been ported to sphinx 2.0 API

- Disable linkcheck/spellcheck
  The spellcheck plugin has not been moved to the sphinx 2.0 API
  and there are tons of spelling mistakes reported due to the use
  of technical terms that are unknown to spellcheck. Also disabled
  the linkcheck because it just stands more in our way than it
  reports issues that needs to be fixed.

- Bump version: 9.17.32 → 9.17.33

- Added integration test for bootstrap only builds

- Fixed bootstrap only building
  Image descriptions that define packages in the bootstrap section

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=137
2019-03-31 07:14:07 +00:00
Dominique Leuenberger
24b8eed0cc https://github.com/SUSE/kiwi/issues/1030
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=39
2019-03-28 09:08:52 +00:00
Dominique Leuenberger
2cac7c73e8 https://github.com/SUSE/kiwi/issues/1030
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=39
2019-03-28 09:08:52 +00:00
Dominique Leuenberger
914ec4060a Accepting request 685857 from Virtualization:Appliances:Builder
- Bump version: 9.17.30 → 9.17.31

- Update the documentation regarding vagrant boxes
  Extend the documentation on how to build VirtualBox vagrant boxes
  All this was done by Dan Čermák <dcermak@suse.com>

- Refactor incremental changelog update
  The creation of the package changelog is based on a reference file.
  However that reference file contained log information in a specific
  timezone which requires to hardcode the region of that timezone
  in the code to correctly run date/time calculations. This can
  be done better from a conceptual point of view. This patch changes
  the handling in a way that the reference file is a git log
  excerpt including the dates as git log lists them. The dates
  contains complete numeric time/date/zone information and can be
  used for calculations. The changelog helper tool converts the
  result data to match the requirements of rpm changelog files
  and prints the time/date information localized to the callers
  timezone or as UTC if the --utc switch is given. By default the
  user local timezone settings applies. That way the setup of
  the local timezone is immaterial to the changelog processor
  and the workaround in the gitlab-ci rpm stage can be deleted
  too.

- Fix derived docker images build
  This commit fixes the derived docker images when the base image is a
  compressed file. After the refactor in #998 the decompression of the
  base image and the skopeo call to import the decompressed image happened
  in absolutely independent scopes. NamedTemporaryFile python class by
  default deletes the created temporary file when the class instance is

OBS-URL: https://build.opensuse.org/request/show/685857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=38
2019-03-27 15:11:14 +00:00
Dominique Leuenberger
c789db7977 Accepting request 685857 from Virtualization:Appliances:Builder
- Bump version: 9.17.30 → 9.17.31

- Update the documentation regarding vagrant boxes
  Extend the documentation on how to build VirtualBox vagrant boxes
  All this was done by Dan Čermák <dcermak@suse.com>

- Refactor incremental changelog update
  The creation of the package changelog is based on a reference file.
  However that reference file contained log information in a specific
  timezone which requires to hardcode the region of that timezone
  in the code to correctly run date/time calculations. This can
  be done better from a conceptual point of view. This patch changes
  the handling in a way that the reference file is a git log
  excerpt including the dates as git log lists them. The dates
  contains complete numeric time/date/zone information and can be
  used for calculations. The changelog helper tool converts the
  result data to match the requirements of rpm changelog files
  and prints the time/date information localized to the callers
  timezone or as UTC if the --utc switch is given. By default the
  user local timezone settings applies. That way the setup of
  the local timezone is immaterial to the changelog processor
  and the workaround in the gitlab-ci rpm stage can be deleted
  too.

- Fix derived docker images build
  This commit fixes the derived docker images when the base image is a
  compressed file. After the refactor in #998 the decompression of the
  base image and the skopeo call to import the decompressed image happened
  in absolutely independent scopes. NamedTemporaryFile python class by
  default deletes the created temporary file when the class instance is

OBS-URL: https://build.opensuse.org/request/show/685857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=38
2019-03-27 15:11:14 +00:00
Marcus Schaefer
412054bd79 - Bump version: 9.17.30 → 9.17.31
- Update the documentation regarding vagrant boxes
  Extend the documentation on how to build VirtualBox vagrant boxes
  All this was done by Dan Čermák <dcermak@suse.com>

- Refactor incremental changelog update
  The creation of the package changelog is based on a reference file.
  However that reference file contained log information in a specific
  timezone which requires to hardcode the region of that timezone
  in the code to correctly run date/time calculations. This can
  be done better from a conceptual point of view. This patch changes
  the handling in a way that the reference file is a git log
  excerpt including the dates as git log lists them. The dates
  contains complete numeric time/date/zone information and can be
  used for calculations. The changelog helper tool converts the
  result data to match the requirements of rpm changelog files
  and prints the time/date information localized to the callers
  timezone or as UTC if the --utc switch is given. By default the
  user local timezone settings applies. That way the setup of
  the local timezone is immaterial to the changelog processor
  and the workaround in the gitlab-ci rpm stage can be deleted
  too.

- Fix derived docker images build
  This commit fixes the derived docker images when the base image is a
  compressed file. After the refactor in #998 the decompression of the
  base image and the skopeo call to import the decompressed image happened
  in absolutely independent scopes. NamedTemporaryFile python class by
  default deletes the created temporary file when the class instance is

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=136
2019-03-17 19:23:53 +00:00
Marcus Schaefer
4d8f3508bc - Bump version: 9.17.22 → 9.17.23
- Allow xdist to run the tests in parallel for the Python 2.7 env
  
  This reverts an accidental change that was introduced with
  942ed7a8eea65f1c99b5f51a8587cfbeae73b484, which removed the {posargs} from
  tox.ini for the python 2.7 environment.
  

  
- Added get_description method to XMLState
  
  In preparation to access the contents of the <description>
  section this pull requests adds a simple method to read
  the contents.
  

  
- Update tools from strip list for oemboot
  
  For legacy oemboot kiwi descriptions the strip list for
  tools to keep in the initrd is still active. On s390
  required tools for dasd_configure were missing and got
  added by this commit. This Fixes #963
  

  
- Fixed import of signing keys

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=135
2019-02-27 16:14:47 +00:00
Marcus Schaefer
82c2e12c53 - Bump version: 9.17.21 → 9.17.22
- Followup fix for disk detection from root device
  
  No matter if one ore more devices are used in a multipath map,
  if the root device is managed by multipath kiwi has to use the
  mapped device for all operations, otherwise we run into busy
  or blocked state inside of the initrd operations. This is
  related to Issue #954 and bsc#1126283 and bsc#1126318
  

  
- Fixed relocation of GPT
  
  Simplify the relocation of the GPT to the end of the current
  disk by using sgdisk -e instead of gdisk. The possitive after
  effect of this is that the broken return value handling of
  gdisk in centos will be fixed and did not harm the kiwi
  deployment anymore. This Fixes #958
  

  
- Bump version: 9.17.20 → 9.17.21
  

  
- Speedup the make build target

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=134
2019-02-24 16:42:27 +00:00
Marcus Schaefer
06c462ede7 - Bump version: 9.17.16 → 9.17.17
- Added new preferences subsection
  
  In the preferences section the following optional subsection
  can be configured:
  
  <rpm-locale-filtering>true|false</rpm-locale-filtering>
  
  If set to true the default locales POSIX, C, and C.UTF-8 are
  applied as rpm install_lang macro. If the locale section is
  configured in addition the list is extended by that information
  too
  

  
- Extend the .packages file by the license field
  
  For rpm based builds the License field from the rpm metadata
  is extracted into the .packages file. For Debian based build
  the license information is in an extra file and not taken
  into account for the moment.
  
  
  

  
- Added support for %_install_langs rpm macro

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=133
2019-02-09 16:17:40 +00:00