Mailinglist Archive: opensuse-buildservice (81 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: cannot build SLES15 kiwi image in OBS #2
On Mittwoch, 21. Februar 2018, 08:59:27 CET wrote Eike Waldt:
Hi there,

On 02/20/2018 10:31 AM, Adrian Schröter wrote:
On Dienstag, 20. Februar 2018, 09:18:39 CET wrote Eike Waldt:

On 02/19/2018 10:47 AM, Adrian Schröter wrote:
On Montag, 19. Februar 2018, 10:29:57 CET wrote Eike Waldt:
Hi there,

now that I figured out which repos to use and which rpms to build by
hand, my kiwi build is stuck again...
Again, I can repdoduce this at my local OBS instance and also on

Something with creating lvs is broken.
This config works fine on SLES12 kiwi builds.

<systemdisk name='local'>
<volume name='@root' size='10240M'/>

Sadly I also did not find any recent examples for a LVM scenario in any
of you git repos (except for the schema docs, which tell me that this is

[ 237s] [ DEBUG ]: 09:19:55 | EXEC: [pvcreate /dev/mapper/loop0p3]
[ 237s] [ DEBUG ]: 09:19:55 | EXEC: [vgcreate local
[ 237s] [ INFO ]: 09:19:55 | Creating volumes(ext4)
[ 237s] [ DEBUG ]: 09:19:55 | EXEC: [du -s --apparent-size
--block-size 1 /usr/src/packages/KIWI-oem/build/image-root]
[ 238s] [ DEBUG ]: 09:19:55 | EXEC: [bash -c find
/usr/src/packages/KIWI-oem/build/image-root | wc -l]
[ 238s] [ INFO ]: 09:19:55 | --> volume LVRoot with 2680 MB
[ 238s] [ DEBUG ]: 09:19:55 | EXEC: [lvcreate -L 2680 -n LVRoot local]
[ 238s] [ DEBUG ]: 09:19:55 | EXEC: Failed with stderr: WARNING:
Failed to connect to lvmetad. Falling back to device scanning.
[ 238s] /dev/local/LVRoot: not found: device not cleared
[ 238s] Aborting. Failed to wipe start of new LV.
[ 238s] , stdout: (no output on stdout)

Have you check with kiwi developers? Because this looks more like a
in kiwi or lvm tools in first place ... okay, maybe they rely now on some
running daemon, but I would check with them first.
The kiwi dev told me that this is not a kiwi issue, but an issue with
the OBS worker.

schaefi: "Oh and I see you build in obs, then it's clear. The obs
workers do not support creating lvm devices
You could report this to the obs team like I did some time ago. A
possible solution could be to use
kernel-default instead of kernel-obs-build for the obs worker (untested

instead is not an option, but you could try to add it additionly, if
this is about missing kernel modules.

Just add

Support: kernel-default

to your project config to test.

I figured it out.

great :)

To sum it up, udev is not running in the kvm build vm.
As soon as it runs, the lvcreate commands go through and create e.g.

To get udev running in the kvm build vm I had to do the following...

- Add "VMInstall: udev libkmod2" to prjconf
- udev is not enough, as it does not depend on missing libkmod2

- Patch /usr/lib/build/build-vm

--- build-vm 2018-02-21 00:22:22.597466464 +0000
+++ 2018-02-21 07:43:02.025211086 +0000
@@ -581,7 +581,8 @@

if test ! -e /dev/.udev ; then
- echo "WARNING: udev not running, creating extra device nodes"
+ echo "WARNING: udev not running, trying to start it"
+ /sbin/udevd --daemon
test -e /dev/fd || ln -sf /proc/self/fd /dev/fd
test -e /etc/mtab || ln -sf /proc/mounts /etc/mtab

Is this something that can be fixed for all of us (as the kiwi dev said,
it's broken in OBS for all LVM builds) or is building lvm enabled kiwi
images a corner case?

udevd got started via it's %posttrans scripts in the past. It seems the current
script is not working anymore when no systemd is running.

I would like to fix this in udev package, given that this kind of stuff tends
to become incompatible and our build script needs to stay compatible for all

Can you create a bugreport for this?

The missing dependency could get fixed as well then ...


Adrian Schroeter
email: adrian@xxxxxxx

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284
(AG Nürnberg)

Maxfeldstraße 5
90409 Nürnberg

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups