Formatting a device-mapper device sometimes generates an udev event and
sometimes not. It seems to be a race condition between udev rules processing
and device-mapper (once the device node is created both are modifying it
simultaneously). The option --enable-udev_sync enables synchronisation between
device-mapper and udev. After applying this commit the race condition was not
observed.
Change-Id: I2a24004a65f6bd755fe862543b1b5ae148b7f449
Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
Source1001: device-mapper.manifest
Requires: libdevmapper = %{device_mapper_version}-%{release}
+BuildRequires: pkgconfig(libsystemd)
%description
This package contains the supporting userspace utility, dmsetup,
--with-device-mode=0660 \
--enable-pkgconfig \
--enable-udev_rules \
- --with-udevdir=%{udev_dir}
+ --with-udevdir=%{udev_dir} \
+ --enable-udev_sync
%define _exec_prefix /
make device-mapper