From f2f7d22fcdca265fcbb3b7e9b0ea3b1dad6a99df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Tue, 5 Oct 2021 10:52:20 +0200 Subject: [PATCH] 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. --- build-tests/x86/tumbleweed/test-image-luks/appliance.kiwi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-tests/x86/tumbleweed/test-image-luks/appliance.kiwi b/build-tests/x86/tumbleweed/test-image-luks/appliance.kiwi index f1962072..89eb60dd 100644 --- a/build-tests/x86/tumbleweed/test-image-luks/appliance.kiwi +++ b/build-tests/x86/tumbleweed/test-image-luks/appliance.kiwi @@ -59,7 +59,11 @@ + + + +