summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/lvm2_2.03.02.bb
Commit message (Collapse)AuthorAgeFilesLines
* lvm2/libdevmapper: 2.03.02 -> 2.03.05Hongxu Jia2019-10-171-91/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Change to git repo 2. Backport three patches to fix the following issue: While commit [cd735ab1df systemd: upgrade to 243] applied in oe-core, lvmremove hung as following steps: ... dd if=/dev/zero of=./p0 bs=1M count=100 dd if=/dev/zero of=./p1 bs=1M count=100 losetup /dev/loop20 ./p0 losetup /dev/loop21 ./p1 pvcreate -y /dev/loop20 -ff pvcreate -y /dev/loop21 -ff vgcreate rootvg /dev/loop20 /dev/loop21 lvcreate -v -y -L 50 -n rootlv rootvg mkfs -t ext4 /dev/rootvg/rootlv mkdir -p ./lv mount /dev/rootvg/rootlv ./lv lvcreate -v -L 50 -s -n backup /dev/rootvg/rootlv lvconvert -v --merge -i 1 /dev/rootvg/backup umount ./lv vgchange -v -an vgchange -v -ay lvremove -f /dev/rootvg/rootlv ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: remove unsupported OPTIONS+="event_timeout" ruleHongxu Jia2019-10-101-0/+1
| | | | | | | | | | | | | | | | | The OPTIONS+="event_timeout" is Unsupported since systemd/udev version 216, that is ~5 years ago. Since systemd/udev version 243, there's a new message printed if unsupported OPTIONS value is used: Invalid value for OPTIONS key, ignoring: 'event_timeout=180' Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1740666 The fix works on lvm2, it is not necessary for libdevmapper Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: fix run lvcreate hung while PACKAGECONFIG udevHongxu Jia2019-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | Since lvm2-udevrules was removed from lvm RRECOMMENDS in the following commit: [3f64779ea libdevmapper/lvm2: force recipe libdevmapper to populate sysroot only] Execute the following command hung: $ dd if=/dev/zero of=./p0 bs=1M count=100 $ dd if=/dev/zero of=./p1 bs=1M count=100 $ losetup /dev/loop20 ./p0 $ losetup /dev/loop21 ./p1 $ pvcreate -y /dev/loop20 -ff $ pvcreate -y /dev/loop21 -ff $ vgcreate rootvg /dev/loop20 /dev/loop21 $ lvcreate -v -y -L 50 -n rootlv rootvg Add the missing pacakge to PACKAGECONFIG[udev] runtime depends could fix the issue. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: fix blkdeactivate failed with command not foundHongxu Jia2019-09-031-1/+7
| | | | | | | | | | | | | | | | | | Run blkdeactivate failed: ... root@intel-x86-64:~# /usr/sbin/blkdeactivate Deactivating block devices: /usr/sbin/blkdeactivate: line 345: /bin/lsblk: No such file or directory /usr/sbin/blkdeactivate: line 345: /bin/sort: No such file or directory /usr/sbin/blkdeactivate: line 345: /bin/lsblk: No such file or directory /usr/sbin/blkdeactivate: line 384: SKIP_DEVICE_LIST: bad array subscript ... - Add missing runtime depends - Set location of the commands Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libdevmapper/lvm2: force recipe libdevmapper to populate sysroot onlyHongxu Jia2019-08-241-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, in order to fix circular dependencies, we split libdm from lvm2 as a new recipe libdevmapper, and as running result proved, we need to keep both of them built with the same configuration option With new configuration options added, it is hard to keep them the same, so we make recipe libdevmapper to populate libdevmapper sysroot only, and make lvm2 to provide package libdevmapper. In this situation, option differ does not affect header and library API between lvm2 and libdevmapper, although lvm2 and libdevmapper are different at build time, but there is only one lvm2 at run time Side effect: - If one recipe DEPENDS on libdevmapper, it has to add libdevmapper to its RDEPENDS or add lvm2 to DEPENDS, otherwise, there will be a [file-rdeps] or [build-deps] QA warning - It has to add `PREFERRED_RPROVIDER_libdevmapper = "lvm2"' to local.conf to workaound 'Multiple providers' NOTE Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: fix circular dependencies while systemd enable cryptsetupHongxu Jia2019-08-241-0/+6
| | | | | | | | | | | | | | While systemd enable cryptsetup (PACKAGECONFIG_append_pn-systemd = ' cryptsetup'), there is a circular dependencies: systemd -> systemd -> cryptsetup -> libdevmapper -> udev (PREFERRED_PROVIDER_udev = systemd) The libdevmapper was used to break circular dependencies, it does not require udev, refer commit [698d512 lvm2: Add a PACKAGECONFIG for udev support] to move udev related from lvm2.inc to lvm2.bb Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: Fix RDEPEND on lvm2 to lvm2-udevrulesArturo Buzarra2019-08-141-1/+1
| | | | | | | | | | | | | | | Commit c6e963f9e ("lvm2: Add RDEPEND on lvm2 to lvm2-udevrules") added a package dependency due to lvm2-udevrules needs dmsetup, however dmsetup was moved to libdevmapper in commit 269d009a81d4 ("lvm2: libdevicemapper package needs udev rules and dmsetup"), so this dependency should be only for libdevmapper instead of the full package. With the current implementation, a package that has a dependency with lvm2-udev rules will include also many unnecessary packages like lvm2, lvm2-scripts, etc. and their dependencies. Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.03.01 -> 2.03.02Kai Kang2019-03-031-0/+62
Upgrade lvm2/libdevmapper from 2.03.01 to 2.03.02. * update SRC_URI back to use ftp url - 2.03.02 has been released but no such tag in git repo - subdir 'releases' on ftp site should be a persistent place for tarballs * drop 0003-include-fcntl.h-for-O_-defines-and-fcntl-signature.patch which is not needed any longer * remove backpoort patch * update patch contexts Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>