Commit Graph

4465 Commits

Author SHA1 Message Date
Marcus Schäfer
f2f7d22fcd
Allow test-image-luks to be build locally too
In suse there are many programs replaced by the busybox
alternative and also preferred by the package manager.
However there are also packages like the kernel in suse
which wants gawk and not busybox-gawk. In kiwi to build
images there are two installation phases, the bootstrap
phase which installs mandatory packages to allow chroot
operations and the image phase which installs the rest
of the requested packages as chroot operation. In this
two pass step the package manager is called twice to
resolve dependencies and that causes the issue with the
preferred busybox packages which gets pulled in in the
first phase. To prevent this there are only two options:

1. Explicitly list the non busybox packages in the
   bootstrap phase

2. Prevent the image phase and put all packages to
   the bootstrap phase such there is only one package
   manager call for dependency resolution

This commit implementes option 1. because having all
packages in the bootstrap phase means that the host
packagemanager resolves and if the host packagemanager
is somehow not compatible with the image target this
leads to other weird issues which are not obvious and
hard to debug.
2021-10-05 10:52:20 +02:00
Marcus Schäfer
dc8af34d84
Bump version: 9.23.61 → 9.23.62 2021-09-23 16:56:32 +02:00
Marcus Schäfer
b900264779
Fixed script calls when running in obs
kiwi is called with --debug in obs which triggers the scripts
to be called through screen. However the obs caller is not
associated with a terminal thus it fails. This commit creates
an exception for debug mode when running in obs
2021-09-23 16:54:31 +02:00
Marcus Schäfer
4b531c0c47
Bump version: 9.23.60 → 9.23.61 2021-09-23 15:35:35 +02:00
Luis González Fernández
547c3e2dcc
Fix secure boot for ubuntu based images
This patch fixes #1911 and makes secure boot images to work again in Ubuntu 20.04

Co-authored-by: Luis Ladislao Gonzalez Fernandez <luislgf@inditex.com>
2021-09-23 15:34:08 +02:00
Marcus Schäfer
46c51f1a8b
Merge pull request #1934 from OSInside/terminal_control_on_scripts_in_debug_mode
Run scripts via a screen session in debug mode
2021-09-23 12:25:49 +02:00
Marcus Schäfer
7fa6cda579
Run scripts via a screen session in debug mode
When creating a custom script it usually takes some iterations of
try and testing until a final stable state is reached. To support
developers with this task kiwi calls scripts associated with a
screen session. The connection to screen is only done if kiwi
is called with the --debug option.
2021-09-22 11:48:47 +02:00
Marcus Schäfer
a61a80e7c1
Delete obsolete release stage from gitlab
Now done as github action
2021-09-21 18:49:53 +02:00
Marcus Schäfer
765f509b4a
Bump version: 9.23.59 → 9.23.60 2021-09-21 18:47:59 +02:00
Marcus Schäfer
f0e2eaeba5
Fixed pypi tox release target
Only needs the creation of the sdist tarball
2021-09-21 18:46:58 +02:00
Marcus Schäfer
0174921669
Bump version: 9.23.58 → 9.23.59 2021-09-21 18:43:46 +02:00
Marcus Schäfer
a6d0b2f14b
Moved pages and pypi publish to github actions
Moved gh-pages doc update and pypi upload from gitlab
to github actions
2021-09-21 18:42:18 +02:00
Marcus Schäfer
6aca70abec
Fixed RNC schema definition
From the compact form of the schema the RNG schema
is created. The latest changes to support the target_dir
attribute in the <archive> section were added wrong
to the compact form of the schema
2021-09-21 13:09:40 +02:00
Marcus Schäfer
082bc3c0bb
Fixed Tumbleweed integration tests
Due to changes in the distribution the tests needs some
adaptions. The kernel as provided now by TW uses symlinks
from boot to /usr/lib/modules/... to point to the kernel
binary. Of course this breaks for any system that uses
/boot on another partition. Those image tests which were
testing this aspect needs fixing.
2021-09-17 11:58:21 +02:00
Marcus Schäfer
16e5b2994f
Bump version: 9.23.57 → 9.23.58 2021-09-15 12:06:28 +02:00
Marcus Schäfer
39656ff69e
Fixed MANIFEST
Make sure all test data is included into the source tarball not only
a recursive inclusion of a portion of it. This is needed to run
tests at build time from the pypi provided source tarball
2021-09-15 12:04:43 +02:00
Marcus Schäfer
d1f8789af4
Bump version: 9.23.56 → 9.23.57 2021-09-15 09:50:12 +02:00
Marcus Schäfer
a5e0b4cea8
Merge pull request #1930 from OSInside/doc_source_in_sdist
Fixed python manifest
2021-09-15 09:47:42 +02:00
Marcus Schäfer
f26efbac49
Fixed python manifest
Deleted no longer existing doc source from manifest and
add the full set of documentation sources
2021-09-14 11:59:35 +02:00
Marcus Schäfer
58f5550768
Bump version: 9.23.55 → 9.23.56 2021-09-10 23:52:50 +02:00
Marcus Schäfer
6e33f4a038
Merge pull request #1924 from OSInside/fix_package_uninstall
Fixed uninstall handling via dnf, microdnf, zypper
2021-09-10 23:52:00 +02:00
Marcus Schäfer
79080d1c97
Fixed uninstall handling via dnf, microdnf, zypper
The above package managers supports uninstall instructions
like 'iwl*'. In kiwi there was code checking via rpm if
the packages given to uninstall actually exists. That code
does not work if the given package to uninstall is an
instruction that matches a pattern. Therefore if we use
the uninstall section in the kiwi image description, just
pass the provided information to the package manager and
don't try to be clever in kiwi itself.
2021-09-10 23:49:37 +02:00
c3295fea70
Merge pull request #1925 from OSInside/fix_wipe_of_bundle_dir
Only wipe bundle dir when required
2021-09-10 17:02:07 -04:00
28a6846359
Merge pull request #1921 from OSInside/allow_log_file_for_result_bundle
Allow to set --logfile for result namespace
2021-09-10 16:55:00 -04:00
Marcus Schäfer
0ee9e22556
Only wipe bundle dir when required
The given result bundle dir must only be wiped if the
request to turn the result files into an rpm was given.
Only in this case the given bundle dir must start empty
2021-09-10 22:42:23 +02:00
Marcus Schäfer
3050eba5c7
Allow to set --logfile for result namespace
Setting a logfile for e.g 'kiwi-ng result bundle ...'
is useful and should be possible
2021-09-09 13:17:47 +02:00
Marcus Schäfer
fece3efa13
Bump version: 9.23.54 → 9.23.55 2021-09-09 10:00:04 +02:00
Marcus Schäfer
980b0a645a
Merge pull request #1917 from OSInside/support_rpm_for_bundle
Added support for building rpm package from bundle
2021-09-09 09:59:21 +02:00
Marcus Schäfer
7616114348
Added support for building rpm package from bundle
With the new option --package-as-rpm it is possible to
call the kiwi result bundler such that the image build
results gets packaged into an rpm. I think this is a
handy feature to transport image builds via repositories
2021-09-08 16:25:32 +02:00
Marcus Schäfer
21cf74d9f8
Fixed MicroOS integration test
With ignition/combustion in place it's not allowed
to use tmp as a subvolume
2021-09-08 10:11:23 +02:00
Marcus Schäfer
bea4f651d4
Bump version: 9.23.53 → 9.23.54 2021-09-07 18:02:22 +02:00
Marcus Schäfer
21d757dafe
Merge pull request #1848 from OSInside/delete_obsolete_ddb_adapter_hack
Delete obsolete ddb.adapterType patching
2021-09-07 18:01:57 +02:00
Marcus Schäfer
702326d848
Merge pull request #1903 from OSInside/allow-archive-target
Allow target dir for archive
2021-09-07 18:01:41 +02:00
Marcus Schäfer
ab5836d5a6
Merge pull request #1915 from OSInside/sync_data_trailing_slash
Sync data trailing slash
2021-09-07 18:01:28 +02:00
Marcus Schäfer
8cc49615d5
Merge pull request #1916 from OSInside/fix_grub_linux_uuid_setting
Fixed condition for GRUB_DISABLE_LINUX_UUID="true"
2021-09-07 18:01:15 +02:00
Jesus Bermudez Velazquez
fd52237478
Allow target dir for archive
- Add the option to specify a target directory
  to unpack the archive
- Update doc for target dir attribute

This Fixes #1794
2021-09-07 15:13:24 +01:00
Marcus Schäfer
2de29ae5bb
Fixed condition for GRUB_DISABLE_LINUX_UUID="true"
The grub config parameter GRUB_DISABLE_LINUX_UUID must only
be set if the device persistence setting is not UUID. However,
in kiwi UUID device names are the default and doesn't have to
be expressed explicitly. Therefore the condition to check
for different than 'by-uuid' is wrong for the default case were
no device persistence setting exists. This results in a wrong
grub option to be set. This commit fixes it in a way to disable
UUID device names in grub if the only other device persistency
setting in kiwi named: 'by-label' is explicitly configured.
This Fixes #1842
2021-09-06 11:35:52 +02:00
Marcus Schäfer
bbb7efdf2f
Added force_trailing_slash argument to sync_data
A speciality of the rsync tool is that it behaves differently
if the given source_dir ends with a '/' or not. If it ends
with a slash the data structure below will be synced to the
target_dir. If it does not end with a slash the source_dir
and its contents are synced to the target_dir. For example:

    source
      └── some_data

1. $ rsync -a source target

    target
      └── source
            └── some_data

2. $ rsync -a source/ target

    target
      └── some_data

The parameter force_trailing_slash in the DataSync::sync_data
method can be used to make sure rsync behaves like shown in
the second case. This Fixes #1786
2021-09-06 11:18:30 +02:00
Marcus Schäfer
7ffabbbc6e
Added type hints for DataSync class 2021-09-06 10:24:41 +02:00
Marcus Schäfer
238355e1f3
Bump version: 9.23.52 → 9.23.53 2021-09-03 08:48:20 +02:00
Marcus Schäfer
7ae9d483f0
Merge pull request #1913 from OSInside/start_move_ci_from_gitlab_to_actions
Start moving CI test from gitlab to actions
2021-09-03 08:47:32 +02:00
Marcus Schäfer
80d7b5b62d
Start moving CI test from gitlab to actions
Moving the linter and unit tests to github workflows and
out of the gitlab CI system has the advantage that pull
request from forked repos will run the tests. In the long
run I think we should move away completely from gitlab CI
and use github actions as this will reduce the number of
external services used in the kiwi project. This commit
starts with the most simple parts: unit and type tests,
doc rendering and code style
2021-09-02 16:59:55 +02:00
Marcus Schäfer
80f3148788
Add missing bootloader tests
Merging #1850 exposed the missing bootloader tests.
This reminds me to move the gitlab driven unit tests
to github actions because for forked repos the gitlab
tests does not run but github actions tests would run
2021-09-02 13:00:51 +02:00
Marcus Schäfer
9992b44aed
Merge pull request #1850 from Mexit/master
Allow the ISO to be booted from grub directly
2021-09-02 12:35:34 +02:00
Marcus Schäfer
801a2a1e6d
Merge pull request #1910 from data-intelligence-robot/patch-1
Fix logging of ISO publisher
2021-09-02 12:35:18 +02:00
Robert Schneider
d68352fb89
Fix logging of ISO publisher 2021-08-31 20:22:52 +02:00
Mexit
f287d2ed64
Improving text formatting 2021-08-31 01:29:40 +02:00
Mexit
8fc6697161 Added documentation for grub2 loopback ISO images 2021-08-31 00:21:45 +02:00
Mexit
9cb79f7d27
Merge branch 'OSInside:master' into master 2021-08-30 18:10:24 +02:00
Marcus Schäfer
846e8af7f1
Bump version: 9.23.51 → 9.23.52 2021-08-27 15:33:57 +02:00