summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2/lvm2.inc
Commit message (Collapse)AuthorAgeFilesLines
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: add UPSTREAM_CHECK_GITTAGREGEXYi Zhao2022-01-051-0/+2
| | | | | | | | | | | | | | | | | | | Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version. Before the patch: $ devtool latest-version lvm2 INFO: Current version: 2.03.11 INFO: Latest version: 19990504 INFO: Latest version's commit: af9010d115cd3b97939cec0120126aba262ec57a After the patch: $ devtool latest-version lvm2 INFO: Current version: 2.03.11 INFO: Latest version: 2.03.14 INFO: Latest version's commit: ef4521831d15a1785e034f6c6f536a03446f6e05 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-1/+1
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* libdevmapper,lvm2: Do not inherit licenseKhem Raj2021-04-261-3/+2
| | | | | | | | | | | | inheriting license class which brings in AVAILABLE_LICENSES into do_configure task checksums class since it wants to enable thin-provisioning-tools if distro allows GPL-3 automatically, but this brings issues when other layers which have additional licenses are provided which ends up in signature mismatches so leave that setting to end-user and keep it disabled by default with a comment in recipes stating that if needed then the user should enable it via config metadata or bbappends. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.03.06 -> 2.03.11Hongxu Jia2021-03-021-1/+1
| | | | | | | | | | | Drop backport patch: - 0001-dev-hdc-open-failed-No-medium-found-will-print-out-i.patch Refresh: - 0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2.inc: switch branch master to mainHongxu Jia2020-11-081-1/+1
| | | | | | | Keep sync with upstream Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: allow for reproducible binary buildsSlater, Joseph2020-07-281-1/+1
| | | | | | | | | Modify original method to eliminate conditional patching of configure.ac. Use SOURCE_DATE_EPOCH which is required for reproducible binaries. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: reproducible binariesSlater, Joseph2020-07-201-0/+2
| | | | | | | | | For reproducible binaries, create a static CONFIGURE_LINE during configuration rather than reporting the command line invoking configure. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.03.05 -> 2.03.06Zheng Ruoqin2019-11-061-2/+1
| | | | | | | | | | | | 1) Remove five patches for they have been merged in new version. 0001-udev-remove-unsupported-OPTIONS-event_timeout-rule.patch 0001-configure-Fix-setting-of-CLDFLAGS-default.patch 0001-activation-add-synchronization-point.patch 0002-activation-extend-handling-of-pending_delete.patch 0003-snapshot-always-activate.patch Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.03.02 -> 2.03.05Hongxu Jia2019-10-171-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/libdevmapper: Make it build for nativePeter Kjellerstedt2019-09-111-0/+1
| | | | | | | | Backport a patch from upstream master that corrects the passing of link flags through configure. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: fix circular dependencies while systemd enable cryptsetupHongxu Jia2019-08-241-3/+1
| | | | | | | | | | | | | | 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>
* meta-oe: Change some ftp:// URIs to http(s)://Adrian Bunk2019-08-021-1/+1
| | | | | | | For glibmm this is done with the gnomebase class. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.03.01 -> 2.03.02Kai Kang2019-03-031-3/+4
| | | | | | | | | | | | | | | 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>
* lvm2/libdevmapper: drop unnecessary UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEXHongxu Jia2018-12-181-3/+0
| | | | | | | | Since switch to github [a7bc7b6 lvm2/libdevmapper: 2.02.180 -> 2.03.01], UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX is not necessary Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.02.180 -> 2.03.01Hongxu Jia2018-11-271-5/+3
| | | | | | | | | | | | | | | | | | - Upddate upstream SRC_URI, use github to replace tarball - Rebase 0001-Avoid-bashisms-in-init-scripts.patch, 0005-do-not-build-manual.patch, 0001-explicitly-do-not-install-libdm.patch - Remove `--enable-applib' since upstream [0d22b58 liblvm: remove lvmapi] - Remove `lvmetad' since upstream [117160b Remove lvmetad] - Remove `oe_runmake ... -C tools install_device-mapper' since upstream [0524829 dmsetup: move to libdm/dm-tools/dmsetup] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2.inc: Correct the license (LGPL-2.0 -> LGPL-2.1)Peter Kjellerstedt2018-11-031-1/+1
| | | | | | | | The library parts are actually LGPL-2.1, not LGPL-2.0. License-Update: The correct license is LGPL-2.1, not LGPL-2.0. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: update SRC_URIMingli Yu2018-11-011-1/+1
| | | | | | | | | Update SRC_URI for lvm2 as the previous one is invalid. Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Tested-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.02.177 -> 2.02.180Hongxu Jia2018-08-021-2/+2
| | | | | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: add UPSTREAM_CHECK_URIYi Zhao2018-05-291-0/+4
| | | | | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: refactoring code to disable package config thin-provisioning-toolsKai Kang2017-10-041-2/+2
| | | | | | | | | | There are 2 GPL variations 'GPLv3' and 'GPLv3.0' for canonical (SPDX) form of 'GPL-3.0' now. Refactoring code to use function incompatible_license_contains() from license.bbclass to filter them all to disable package config 'thin-provisioning-tools'. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: fix start lvm2-monitor.service failedHongxu Jia2017-09-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | While systemd based, start lvm2-monitor.service failed. ... |Sep 21 05:37:34 qemux86-64 lvm[389]: /var/lock: stat failed: No such file or directory |Sep 21 05:37:34 qemux86-64 systemd[1]: lvm2-monitor.service: Main process exited, code=exited, status=5/NOTINSTALLED ... The failure of lvm2-monitor.service caused reboot hung when disk partion is lvm thin provision. While starting lvm2-monitor.service, it reqires the existence of locking dir "/var/lock" which is a symlink to "../run/lock" in oe-core, and "/run" is created in "/etc/fstab" which have to be be after the start of lvm2-monitor.service. So tweak the locking dir to "/tmp/lock" and make sure the dir existence (after tmp.mount). Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: disable thin provisioning support if GPLv3 incompatibleKai Kang2017-09-221-1/+1
| | | | | | | | Disable thin provisioning support for lvm2 if it is set GPLv3 incompatible. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Add HOMEPAGE info into recipe file.Huang Qiyu2017-09-181-0/+1
| | | | | Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2/libdevmapper: workaround build man failureHongxu Jia2017-08-131-0/+1
| | | | | | | | | | | | | On some host (ubuntu 1404), build manual failed. ... ./tools/man-generator --primary lvscan lvscan.8_des Failed to stat description file lvscan.8_des. ... Do not build man to workaround the issue. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2/libdevmapper: fix invoking lvcreate failedHongxu Jia2017-06-051-1/+25
| | | | | | Previously, libdevmapper is separated from lvm2 in the following commit: Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: separate libdevmapper to avoid circular dependencyChen Qi2017-04-261-75/+0
| | | | | | | | | | | If we enable 'cryptsetup' PACKAGECONFIG for systemd, there would be circular dependency issue among 'systemd', 'cryptsetup' and 'lvm2'. cryptsetup only needs libdevmapper from lvm2. So we separte libdevmapper into a new recipe to solve this circular dependency issue. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: fix lvm2-native RRECOMMENDS problemPatrick Ohly2017-03-311-1/+1
| | | | | | | | | | | lvm2-native doesn't have packages, so the RRECOMMENDS must be limited to the target case. This fixes: ERROR: Nothing RPROVIDES 'lvm2-native-scripts-native' (but virtual:native:.../meta-openembedded/meta-oe/recipes-support/lvm2/lvm2_2.02.166.bb RDEPENDS on or otherwise requires it) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: libdevicemapper package needs udev rules and dmsetupPatrick Ohly2017-03-311-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Applications like kpartx and cryptsetup were broken by moving only libdevicemapper itself into a separate package: as a result of that change, lvm2 was not getting pulled into images anymore although libdevicemapper depends on dmsetup and udev rules to be fully functional. For example, "kpartx -as" started to hang while waiting for the udev rules to trigger, which is what creates the /dev/mapper/ entries for the new partitions (see also https://github.com/docker/docker/issues/22025#issuecomment-243943728). Putting udev rules and dmsetup also into libdevicemapper is perhaps counter-intuitive, but necessary to keep the package functioning. A full lvm2 installation is guaranteed to pull them in, too, both because of implicit library dependencies and (just to be sure) an explicit RDEPENDS. lvm2-native doesn't have packages, so this RDEPENDS must be limited to the target case. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Avoid an unnecessary dependency on bashPeter Kjellerstedt2017-03-311-1/+1
| | | | | | | | Rather than having the lvm2 package depend on bash, modify the init scripts it may contain to use /bin/sh instead of /bin/bash. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: fix bash depends QA issueArmin Kuster2017-03-161-0/+1
| | | | | | | WARNING: lvm2-2.02.166-r0 do_package_qa: QA Issue: /etc/init.d/lvm2-monitor contained in package lvm2 requires /bin/bash, but no providers found in RDEPENDS_lvm2? [file-rdeps] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Make use of the new bb.utils.filter() functionPeter Kjellerstedt2017-03-071-1/+1
| | | | | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Replace 'lib' with ${nonarch_base_libdir} for placing udev rules.Amarnath Valluri2017-02-231-2/+2
| | | | | Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Move libdevmapper to a separate packagePeter Kjellerstedt2017-02-221-1/+8
| | | | | | | | This allows, e.g., cryptsetup to use libdevmapper without having to pull in all of lvm2. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Move bash scripts to a separate packagePeter Kjellerstedt2017-02-221-2/+10
| | | | | | | | | | | | By putting the bash scripts in a separate package (lvm2-scripts), the lvm2 package no longer needs to depend on bash. For backwards compatibility, the lvm2 package recommends the lvm2-scripts package. Also remove the adding of ${libdir}/device-mapper/.debug to FILES_${PN}-dbg as it has not been needed since Krogoth. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Add a PACKAGECONFIG for lvmetadPeter Kjellerstedt2017-02-221-3/+3
| | | | | | | This allows the support for lvmetad to be disabled. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Add a PACKAGECONFIG for dmeventdPeter Kjellerstedt2017-02-221-4/+5
| | | | | | | This allows the support for dmeventd to be disabled. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Add a PACKAGECONFIG for udev supportPeter Kjellerstedt2017-02-221-12/+4
| | | | | | | | | | | | The added dependency on util-linux is necessary to avoid the following QA warning which appears when the dependency on udev is removed: WARNING: lvm2-2.02.166-r0 do_package_qa: QA Issue: lvm2 rdepends on util-linux-libblkid, but it isn't a build dependency, missing util-linux in DEPENDS or PACKAGECONFIG? [build-deps] Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Standardize how PACKAGECONFIG is definedPeter Kjellerstedt2017-02-221-3/+6
| | | | | | | | The change in 4071e6b4b0 broke support for redefining PACKAGECONFIG in a bbappend without having to resort to use PACKAGECONFIG_class-target. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Make sure odirect is always enabledPeter Kjellerstedt2017-02-221-9/+6
| | | | | | | | Make sure that even if PACKAGECONFIG is modified in a bbappend, odirect will still be enabled. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: enable native compilationPatrick Ohly2017-02-131-5/+23
| | | | | | | | | | | Required for cryptsetup-native, which useful for setting up dm-verity during a build. "native-sdk" gets added just in case that this may also be used in an SDK. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: 2.02.138 -> 2.02.166dengke.du@windriver.com2016-11-231-7/+5
| | | | | Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: enable option o_directWenlin Kang2016-10-051-1/+2
| | | | | | | | | | During some lvm operations, e.g, create many volumes, we notice a quite big degradation in performance with o_direct disabled, if enabled the performance get much better, so, here we should enable this option. Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: add PACKAGECONFIG for lvm thin provisioningHongxu Jia2016-09-111-2/+10
| | | | | | | | The thin provisioning tools is runtime dependency, so disable build time detection. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* thin-provisioning-tools: add version 0.6.3Hongxu Jia2016-09-051-1/+1
| | | | | | | | | | | | | | | It is required by lvm2, since lvm2 could find modprobe correctly ------ |lvm lvchange -a y --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } wrl/pool00 |/usr/sbin/thin_check: execvp failed: No such file or directory | Check of pool wrl/pool00 failed (status:2). Manual repair required! ------ The thin-provisioning-tools provides /usr/sbin/thin_check. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: tweak MODPROBE_CMD for cross compileHongxu Jia2016-09-051-0/+3
| | | | | | | | | | | | | | | Lvm uses variable MODPROBE_CMD at runtime, so build time detection of modprobe is incorrect. ------ |lvm lvcreate --thinpool wrl/pool00 --size 5556m --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] filter=["r|/loop1$|","r|/loop2$|","r|/loop3$|","r|/loop4$|","r|/loop5$|","r|/loop6$|","r|/loop7$|"] } |tmp/sysroots/x86_64-linux/usr/bin/modprobe: execvp failed: No such file or directory |tmp/sysroots/x86_64-linux/usr/bin/modprobe failed: 2 ------ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: use bb.utils.contains() instead of base_contains()Ross Burton2016-04-281-2/+2
| | | | | | | | base_contains() is a compatibility wrapper and may warn in the future, so replace all instances with bb.utils.contains(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: make it more explicit that readline support is disabled by defaultAndre McCurdy2016-03-251-8/+7
| | | | | | | | | | Any PACKAGECONFIG default assigned with ??= is lost by subsequent assignments with +=, therefore lvm2 is currently building with the readline PACKAGECONFIG disabled. Make that explicitly clear in the recipe. Also minor formatting updates, to align with style guide. Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: Portable fixes for fixing compile with muslKhem Raj2016-02-011-1/+5
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* lvm2: 2.02.125 -> 2.02.138Dai Caiyun2016-01-141-1/+1
| | | | | | | Upgrade lvm2 from 2.02.125 to 2.02.138. Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>