Commit Graph

129 Commits

Author SHA1 Message Date
Marcus Schäfer
bf5c9d0d55 Revert "Cleanup xattr requirement"
This reverts commit 6754b3f9e2.
It has turned out that SLE15 still uses the other xattr
module :/
2021-11-02 07:32:41 -04:00
Marcus Schäfer
6754b3f9e2 Cleanup xattr requirement
There is no version of suse we support that provides
the old xattr module. Thus the requirement can be set
in a clean way to pyxattr and the setup.py trickery
can be deleted
2021-10-27 09:42:02 -04:00
Marcus Schäfer
d26d66b86e
Added lsof to kiwi-systemdeps-core 2021-10-20 22:57:44 +02:00
Marcus Schäfer
cded86afec
Add support for portable result data (#1949)
In addition to the serialized Result instance kiwi.result
file this commit also creates a portable version of this
information in kiwi.result.json. Only the information that
can be expressed as json document is part of the portable
version. This is related to Issue #1918
2021-10-12 18:31:49 -04:00
Marcus Schäfer
8bc1a819b3
Added mdadm to requires for systemdeps
When building raid based images the buildhost needs mdadm.
In addition rework the place to require disk based tools.
Most of them were added to the filesystem systemdeps but
belong to the disk systemdeps
2021-10-06 16:13:58 +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
Dan Čermák
91b56dc670
Remove util-linux-systemd & util-linux Requires from dracut-kiwi-overlay
These dependencies are pulled in via dracut-kiwi-lib.
2021-06-30 14:26:20 +02:00
Dan Čermák
4e297a934a
Add missing util-linux-systemd Requires to dracut-kiwi-[live,libs] 2021-06-30 14:24:50 +02:00
Dan Čermák
186b2bd7f7
Add missing util-linux-systemd dependency to dracut-kiwi-overlay
The script kiwi-overlay-root.sh requires lsblk which is provided by
util-linux-systemd. If that package is missing in the final image, then booting
an overlayroot image hangs with:

dracut-pre-mount[480]: //lib/dracut/hooks/pre-mount/30-kiwi-overlay-root.sh: line 46: lsblk: command not found
2021-06-23 16:15:25 +02:00
Marcus Schäfer
47f307e9bf
Fixed spec file on Debian tool settings
debootstrap should always come with dpkg because we don't
want to handle the architecture names used on Debian when
dpkg knows them better than we do. since debootstrap itself
considers the possibility of being called without dpkg on
the system we generate the dependency by a spec change
here. This Fixes #1778
2021-04-19 10:15:21 +02:00
Marcus Schäfer
341ed2061f
Added openssl to the core requires
openssl is used in kiwi to construct a password hash
if the plaintext password feature for user settings
is used. This Fixes bsc#1184128
2021-04-12 10:43:33 +02:00
Marcus Schäfer
93d72e78dc
Change packagemanager setting from apt-get to apt
In kiwi we use the name of the section as package name to install this
package manager capability. However on Debian based distros there is
no package named apt-get. There is only a package named apt which
provides a tool named apt-get. To avoid inconsistencies like we had it
in Issue #1735 and to bring this setting in line with all other
packagemanager settings the setting was moved to just apt.
This Fixes #1738
2021-03-15 16:13:02 +01:00
ec12cb4c2f
Merge pull request #1760 from OSInside/require_iso-media_for_disk-images
Add a requirement for kiwi-systemdeps-iso-media on disk images
2021-03-12 05:53:00 -05:00
David Cassany
4e91e028eb
Require qemu-img in any filesystem based image
This commit moves the qemu-img requirement into the
`kiwi-systemdeps-filesystems` to ensure ISO, OEM and PXE images include
it in the build service. Also this is required for images that are
simple root-trees in a filesystem (image=ext4).
2021-03-11 14:42:30 +01:00
David Cassany
307b7e0234
Add a requirement for kiwi-systemdeps-iso-media on disk images
This commit adds a requirement for `kiwi-systemdeps-iso-media` in
`kiwi-systemdeps-disk-images`. This is to ensure that installing
`kiwi-systemdeps-disk-images` is enough to build OEM images including
install media.
2021-03-11 14:25:55 +01:00
Marcus Schäfer
4361f7de22
Fixed kiwi-systemdeps-filesystems requires
The filesystems requires list also contains low level
tools to manage partitions, loops and subsystems. The tools
to manage LUKS(cryptsetup) are missing and imho belongs there
along with the LVM tools which are listed
2021-02-15 16:44:47 +01:00
David Cassany
851a4f3388
Include missing qemu-tools dependency for iso images
This commit includes a missing qemu-tools dependency for iso
image type.
2021-01-20 13:02:33 +01:00
Marcus Schäfer
12bad3c304
Fixed missing systemdisk provides
kiwi-systemdeps-filesystems did not provide kiwi-filesystem:ext2
2021-01-15 15:02:21 +01:00
Marcus Schäfer
a54a16247f
Update kiwi-systemdeps-image-validation
Make python anymarkup to be only recommended. The package
does not exist on all distributions, e.g suse does not
provide it and for kiwi it's an optional plugin
2020-12-18 14:31:57 +01:00
Marcus Schäfer
cc5e0f4fdb
Fixed missing provides tag
When building WSL images the image type is set to appx.
Therefore obs is looking for what provides kiwi-image:appx
This provides tag was missing
2020-12-18 13:13:20 +01:00
Marcus Schäfer
531ab36d4d
Update spec file
Complete and cleanup spec for drop in replacement of new
systemdeps sub-packages
2020-12-17 18:09:11 +01:00
Marcus Schäfer
1ebc4c9177
Set min version python requirement
The use of new features like type hinting and annotations
requires a python version >= 3.6
2020-12-17 16:49:09 +01:00
bd77efd7eb Refactor packaging to split out system dependencies into subpackages
The eventual goal is to eliminate the requirement to use magic in
build systems (e.g, OBS) to compose the necessary dependencies for
image builds, while making it easier for local users to discover
what they need to build appliances.

Fixes #1503
2020-12-17 10:20:12 -05:00
40167a8360 Drop useless chkconfig dependency
We originally had chkconfig as a dependency because alternatives(8)
is part of chkconfig in RH/Fedora systems. Since we don't use that
anymore, we don't need this dependency.
2020-12-17 10:20:12 -05:00
0c995704be Require gnupg on Debian/Ubuntu
Without this, it's not possible to do GPG verification of Debian/Ubuntu
repositories.
2020-12-17 10:20:12 -05:00
5572dee3c9 Add DNF as a proper dependency for openSUSE
This is required so that OBS can build openSUSE containers and appliances
using DNF as the package manager.
2020-11-24 12:09:41 -05:00
Marcus Schäfer
995ee4b631
Fixed spec file microdnf requirement
SUSE/SLES doesn't provide microdnf within the official channels yet
2020-11-24 18:05:29 +01:00
Marcus Schäfer
02d955ec6e
Merge pull request #1619 from OSInside/microdnf-package-manager
Add support for the Micro DNF package manager
2020-11-13 15:28:04 +01:00
388eeef349 Add support for the Micro DNF package manager
Micro DNF is a minimal C implementation of DNF that is usable for
minimal appliances and containers. While it is not at parity with
DNF, it implements enough functionality that it is mostly usable
for building appliance images.
2020-11-12 10:09:23 -05:00
Frank Schreiner
02a3ae4069
use BuildRequires for distros which use fdupes 2020-11-11 11:51:35 +01:00
Marcus Schäfer
750261a056
Fixed install of bash completion
The kiwi completion was installed as kiwi-ng.sh below
/usr/share/bash-completion/completions. This is wrong
because the completion does not pick up files with
a suffix like .sh. This commit changes the completion
file to be installed as kiwi-ng without the suffix
and Fixes #1603
2020-11-03 18:04:22 +01:00
Marcus Schäfer
89f85e4504
Use custom tmpfs for managing overlays
Provide a method to manage the base mount point for overlay and
iso mount points and set the base directory to it because /run
has a RAM space limitation which is unfortunate to handle live
systems. This Fixes #1558
2020-10-08 15:04:13 +02:00
David Cassany
26b0269593
Make dependencies to dracut-kiwi-lib release specific
This commit adds a dracut-kiwi-lib dependency to dracut-kiwi-oem-dump and
darcut-kiwi-oem-repart to match up to the release level. This way the
dependency ensures the pulled binaries they are all part of the same build.
2020-10-05 14:56:48 +02:00
David Cassany
866cb6e0de
Align dracut-kiwi-lib version with packages requiring it
This commit enforces dracut-kiwi-oem-repart and
dracut-kiwi-oem-dump to require dracut-kiwi-lib of the same exact
version. This prevents dracut-kiwi-lib and the packages
dependent on it being installed on a image with inconsistent versions.

Fixes #1529
2020-10-02 12:06:31 +02:00
Marcus Schäfer
cc19266600
Cleanup setup.py
The way kiwi uses setup.py assumes that pip runs this script
like a spec file in rpm is processed. However this is not the
case given that pip implicitly creates a static zip file called
wheel which looses all the code logic done in setup.py. Therefore
setup.py should not contain code that needs to run at install
time. Of course this change comes with an effect which is that
the following files will not be available when installing kiwi
from pip:

* man pages: /usr/share/man/man8/...
* command completion: /etc/bash_completion.d/kiwi-ng.sh
* kiwi default config file: /etc/kiwi.yml
* package docs: /usr/share/doc/packages/kiwi-ng/...
  (kiwi.pdf, LICENSE, README)

kiwi stays fully functional without this information. It is
expected that the installation of kiwi as a service will
be done by a package and its package manager. When using kiwi
from pip it is designed to provide a python module but not
a complete user application. The way pip and wheels interact
with each other seems to demonstrate that pip is not a
package manager but more a python module manager.

This Fixes #1415
2020-07-03 10:27:57 +02:00
Marcus Schäfer
72dafb799f
Fixed spec file on bare word comparison
on e.g Fedora Rawhide rpm complains about bare word comparison
error: bare words are no longer supported, please use "..."
This patch fixes the spec template to respect this
2020-05-26 10:30:44 +02:00
David Cassany
10896ad2fe
Remmove any Recommends for CentOS7
This commit fixes the package spec for CentOS 7. In CentOS 7 there is no
support for weak dependencies. In 9792cea1 a recommended dependency on
gpg tools was included for all builds and this caused a failure for
CentOS 7. With this commit, the recommended dependency, is omitted for
any pre CentOS 8 distro.
2020-05-22 11:08:46 +02:00
David Cassany Viladomat
354fdee5a8
Merge pull request #1446 from OSInside/fix_apt_signing_keys_management
Fix signing keys management for APT
2020-05-18 14:29:42 +02:00
David Cassany
9792cea153
Include recommend for gpg tool 2020-05-18 12:18:05 +02:00
Marcus Schäfer
aba2505524
Fixed spec file
This patch is two fold. First the py2 version of kiwi was
dropped since py2 is EOL. To indicate that correctly on the
package level python3-kiwi has to obsolete python2-kiwi.
The other part of the change is a file conflict of the
files:

    etc/bash_completion.d/kiwi-ng.sh
    /usr/share/doc/packages/python-kiwi/README

which were provided by the kiwi-man-pages sub-package but
were moved to be provided by the main python3-kiwi package
now. On update of the package with an older version of
kiwi that maintains this files to belong to kiwi-man-pages
a file conflict at install time appears. To solve this
python3-kiwi now conflicts with kiwi-man-pages < %{version}
This Fixes #1413 and Fixes bsc#1168973 and bsc#1156677
2020-05-14 17:06:05 +02:00
Marcus Schäfer
feaf6b0863
Refactor setup of bootloader parameters
The bootloader settings are handled through attributes in the
type element. Over the years some attributes were added and
there are requests for more settings. Therefore the bootloader
setup deservers its own section. With this commit the schema
changes from v7.1 to v7.2 and moves bootloader, bootloader_console
boottimeout and zipl_targettype into a new bootloader subsection
below type. The commit also adds an auto transformation template
such that customers don't have to change their image descriptions.
This is related to Issue #1401
2020-05-08 13:30:43 +02:00
Marcus Schäfer
9cc39a8f4b
Fixed spec file header information
Fixed copyright date/company and url path to project
2020-04-28 14:30:40 +02:00
David Cassany
4aef8543f3
Add kpartx dependency on dracut-kiwi-oem-dump package
This commit adds a missing dependency on dracut-kiwi-oem-dump
package. In images where The `kpartx` tool is missing the
dracut-kiwi-oem-dump was not applied for the initrd.

Fixes #1364
2020-03-13 16:26:41 +01:00
Marcus Schäfer
b0eeff6067
Turn btrfs requirement into a recommend
Only on suse systems btrfs is eligable to be a required package
because it's the default filesystem of that distribution. In any
other case it should be a recommended package. As a side effect
of this change we will be able to activate the CentOS-8 build
target
2020-02-18 10:22:06 +01:00
Al
ad33c037dc Split kiwi-dump into 2 modules to allow inserting a module after the image dump and before system reboot 2020-02-11 10:04:19 -08:00
10d7e51bef
Merge pull request #1310 from OSInside/use_tftp_system_user_package
Start using tftp system user package
2020-01-20 07:53:17 -05:00
David Cassany
2ef9f6d04f
Start using tftp system user package
With this commit we start requiring tftp system user package. This
user was created and managed by multiple packages before, with the
risk of having inconsistent criteria on its defaults. Now there there
a system user package so whatever package that requries this user should
just require this package and do not create or modify the tftp user.

Related with bsc#1143454
2020-01-15 15:19:04 +01:00
Marcus Schäfer
550cccdbea
Refactor kernel version lookup
For the lookup of the kernel version kiwi provided a small
C program that reads the first bytes of the kernel binary
and extracts the version information. Given the various
compression formats and also the problem of kernel files
that contains the decompressor code which could be anything
it has turned out to be difficult to provide a stable tool
to read the version from the binary. Therefore the code in
kiwi was refactored to read the version via regexp match
from the filename which also makes kversion an obsolete
tool. This Fixes #1308
2020-01-11 22:31:02 +01:00
4af6507201 Exclude 'Recommends: kiwi-man-pages' for EL7 and older in the spec 2019-12-06 11:13:27 -05:00
Marcus Schäfer
2532202a7a
Fixed scope of kiwi-man-pages sub package
The kiwi-man-pages package provided data that belongs to
the main package, e.g the completion as well as the
license information. In addition kiwi-man-pages should
not be a requirement.
2019-12-06 16:28:32 +01:00