Commit Graph

14 Commits

Author SHA1 Message Date
David Cassany
6383ea6c1f
Better integrate debootstrap in KIWI process
This commit integrates debootstrap process in KIWI in a more transparent
way. This refactor makes debootstrap to operate directly over the image
target root tree. This way KIWI can show and parse debootstrap stdout
and also avoids having to copy the created root tree from one temporary
folder to the actual target root tree path.

Related to #1587
2020-11-02 14:09:39 +01:00
David Cassany
c5d51ec86e
Include boostrap packages list into deboostrap call
This commit includes the packages listed in boostrap section to the
debootstrap call instead chrooting into the new root tree and call
apt.

Fixes #1587
2020-10-19 22:08:04 +02:00
Marcus Schäfer
47167fd486
Use rsync in inplace transfer mode
Using the --inplace option in rsync helps to save space on
syncing the rootfs data and prevents e.g OBS workers from
running out of VM space when transfering root filesystem
data. Also using --inplace allows to keep hardlinks intact.
This is related to bsc#1096738
2020-07-15 16:56:28 +02:00
David Cassany
542769c882
Fix signing keys management for APT
This commit fixes the management of the trusted keyring for apt
repositories. It creates a `trusted.gpg` keyring with the provided
signing keys so APT can check against that the configured repositories.

Fixes #1440
2020-05-18 12:17:56 +02:00
Marcus Schäfer
5faa984f83
Fixed zypper error code validation
The error code 127 - command not found, was not treated as
an error. This commit adds 127 to be an error condition
along with the other 1xx error codes from zypper that are
handled as errors. This Fixes #1430
2020-05-13 12:25:42 +02:00
David Cassany
feb574a913 Adding support for Pacman package manager
This commit adds support for pacman package manager and, in
consequence, support for Arch Linux images. It also adds
the package definition for Arch Linux.
2020-05-03 16:18:02 +02:00
Marcus Schäfer
fd08da5291
Merge pull request #1423 from OSInside/clean_AnonymousUniqueId
Clean AnonymousUniqueId from the image
2020-05-01 17:12:03 +02:00
David Cassany
469f71144e
Clean AnonymousUniqueId from the image
This commit is two fold.

For one side does a small refactor to move the deletion of custom RPM
macros to package manager level inside a cleaning method. This way only
RPM based package managers run RPM specific code and each package manager
can apply its own specific logic.

On the other hand for the zypper package manager the deletion of
/var/lib/zypp/AnonymousUniqueId file has been added as part of the
new cleaning method.

Fixes #1396
2020-04-30 15:19:08 +02:00
David Cassany
f7c805f156
Add flags and argument separator for zypper
This commits adds a `--` argument in zypper install calls right after
the flags and before the arguments (in this case packages) list.

Fixes #1407
2020-04-23 17:20:49 +02:00
David Cassany
686dafc9e4
Remove RootBind.move_to_root method
This commit removes the RootBind.move_to_root method as this can all be
done by using the Path.move_to_root utility method. This allows
to drop the RootBind attribute in PackageManager classes and focus
path manipulation methods into a common utility.

Related to #1281
2020-01-20 16:17:24 +01:00
David Cassany
479769dc4b
Do not rsync /dev on debootstrap
This commit does not rsync /dev on debootstrap and instead it uses
the bind mount for /dev the same way it is done for other non apt
based bootstrap processes.
2019-11-27 09:29:13 +01:00
David Cassany
c7e804b829
Do not rsync kernel filesystems on debootstrap
This commit ensures that /proc and /sys are not rsynched when
debootstrapping an apt based image.

Fixes #1270
2019-11-26 17:17:21 +01:00
Marcus Schäfer
bdb7123fa1
Refactor use of logging facility
Use getLogger method instead of a global log object
Also use caplog fixture to capture log messages in
unit tests. This Fixes #1244
2019-10-23 17:54:27 +02:00
David Cassany
4b3a105026
Re-structure unit tests folders
This commit relocates unit tests to a folder structure that matches
the source code structure.

Fixes #1128
2019-10-21 14:00:05 +02:00