summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/lvm2
Commit message (Collapse)AuthorAgeFilesLines
* lvm2: upgrade 2.03.33 -> 2.03.34Wang Mingyu6 days1-2/+2
| | | | | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: upgrade 2.03.32 -> 2.03.33Wang Mingyu2025-07-081-2/+2
| | | | | | | | | | | | Changelog: ============ * Use 'lvconvert --repair' to repair raid arrays with transiently lost devices. * Override 'LC_NUMERIC' locale if unsuitable for 'json_std' report format. * Fail 'dm_report_group_create' if radix char from locale unsuitable for 'json_std'. * Escape the escape character itself on JSON report format output. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-openembedded/all: adapt to UNPACKDIR changesAlexander Kanavin2025-06-251-1/+0
| | | | | | | | | | | | | Please see https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265 for what changes are needed, and sed commands that can be used to make them en masse. I've verified that bitbake -c patch world works with these, but did not run a world build; the majority of recipes shouldn't need further fixups, but if there are some that still fall out, they can be fixed in followups. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libdevmapper: upgrade 2.03.31 -> 2.03.32Wang Mingyu2025-05-212-7/+7
| | | | | | | | | | | | | | | | | | | | | | 0001-implement-libc-specific-reopen_stream.patch refreshed for 2.03.32 Changelog: ========== * Add support for using regex in selection criteria for string lists. * Accept thin pool data LV as cachable LV. * Accept '--autobackup' option in pvresize. * Allow using zram block devices (likely for testing). * Lvconvert vdopool conversion propperly validates acceptable LVs. * Fix lvresize when resizing COW snapshots already covering origin. * Fix lvmdbusd read of executed lvm commands output. * Fix construction of DM UUID for cachevol '_cdata' and '_cmeta' devices. * Ignore PV claims from old metadata when then PV belongs to a new VG. * Fix integrity metadata rounding. * Fix string list selection when using '[<item> || <item> ...]'. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: correct PKGV for package libdevmapperChangqing Li2025-04-151-0/+23
| | | | | | | | | | | | | | | | | | | Refer [1] about relations about recipe lvm2 and libdevmapper, package libdevmapper is generated by recipe lvm2. And lvm2 and libdevmapper has different release version, refer [2], VERSION is for lvm2, and VERSION_DM is for libdevmapper. Refer following way in configure.ac to get PKGV of libdevmapper: [snip of configure.ac] DM_LIB_PATCHLEVEL=$($AWK -F '[[-. ]]' '{printf "%s.%s.%s",$1,$2,$3}' "$srcdir"/VERSION_DM) [snip] Other distros like ubuntu, suse also use VERSION_DM as version of libdevmapper [1] https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=3f64779eae2d8312f569bee863f90ec4f8176e6c [2] https://sourceware.org/git/?p=lvm2.git;a=tree Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: upgrade 2.03.30 -> 2.03.31Yi Zhao2025-03-022-6/+6
| | | | | | | | | | | | | | | | | | | | | | | ChangeLog: Version 2.03.31 - 27th February 2025 ==================================== Reduce 'mandoc -T lint' reported issues for man pages. Restore support for LVM_SUPPRESS_FD_WARNINGS (2.03.24). Fix uncache and split cache restoring original state of volume. Extend use of lockopt skip to more scenarios. Enhance error path resolving in polling code. Disallow shared activation of LV with CoW snapshot. Fix lvmlockd use in lvremove of CoW snapshot, VDO pool, and uncache. Improve mirror split with opened temporary volumes. Improve pvmove finish with opened temporary volumes. Fix backup limit for devices file, handle over 10,000 files. Ignore reported optimal_io_size not divisible by 4096. Fix busy-loop in config reading when read returned 0. Fix DM cache preserving logic (2.03.28). Improve use of lvmlockd for usecases involving thin volumes and pools. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: drop ld-is-gold supportYi Zhao2025-02-231-4/+0
| | | | | | | | | | The gold linker support has been dropped in oe-core[1]. Remove related special cases and patches in recipes. [1] https://git.openembedded.org/openembedded-core/commit/?id=a4addb9ab63011e7c604fc5daff95559e7d214e7 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: update 2.03.29 -> 2.03.30Wang Mingyu2025-01-244-13/+13
| | | | | | | | | | 0001-implement-libc-specific-reopen_stream.patch 0004-tweak-MODPROBE_CMD-for-cross-compile.patch 0005-do-not-build-manual.patch refreshed for 2.03.30 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: update 2.03.28 -> 2.03.29Wang Mingyu2024-12-196-85/+14
| | | | | | | | | | | | | | | | | | | 0001-fix-command-bin-findmnt-bin-lsblk-bin-sort-not-found.patch removed since it's included in 2.03.29 Changelog: =========== * Fix renaming of raid sub LVs when converting a volume to raid (2.03.28). * Fix segfault/VG write error for raid LV 'lvextend -i|--stripes -I|--stripesize'. * Add configure --enable/disable-sd-notify to control lvmlockd build with sd-notify. * Allow test mode when lvmlockd is built without dlm support. * Add a note about RAID + integrity synchronization to lvmraid(7) man page. * Add a function for running lvconvert --repair on RAID LVs to lvmdbusd. * Improve option section of man pages for listing commands ({pv,lv,vg}{s,display}). * And some cleanup mostly in test code. Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: Remove a lingering reference to ${PN}-udevrulesPeter Kjellerstedt2024-12-131-1/+1
| | | | | | | | The lvm2-udevrules package has not actually been created since commit c37c867e1adddd6fa39cf3f3d4c6688ea6dc825a. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: upgrade 2.03.27 -> 2.03.28Wang Mingyu2024-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Changelog: =========== - Use radix_tree to lookup for UUID within committed metadata. - Use radix_tree to lookup LV list entry within VG struct. - Introduce setting config/validate_metadata = full | none. - Restore fs resize call for lvresize -r on the same size LV (2.03.17). - Correct off-by-one devicesfile backup counting. - Replace use of dm_hash with radix_tree for lv names and uuids. - Refactor vg_validate with uniq_insert and better use of CPU caches. - Add radix_tree_uniq_insert. - Update DM cache when taking next VG lock instead of dropping it. - Generate json string id only for json reporting. - For vgsummary use new API call dm_config_parse_only_section(). - Use radix_tree for PV names mapping. - Split check_lv_segment into separate _in/complete_vg variant. - Use find_lv instead of find_lv_in_vg when possible. - Do a mirror fixup only when mirrors with logs are imported. - Add faster crc32 calculation from zlib code for x86_64. - Fall back to direct zeroing if BLKZEROOUT fails during new LV initialization. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: upgrade 2.03.26 -> 2.03.27Yi Zhao2024-10-131-2/+2
| | | | | | | | ChangeLog: https://gitlab.com/lvmteam/lvm2/-/tags/v2_03_27 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: Remove the lvm2-udevrules packageFredrik Hugosson2024-10-091-5/+11
| | | | | | | | | | | | | | | | | | Add the specific udev rules needed for device mapper notifications to the libdevmapper package. This is needed to get notifications for device mapping to work with systemd. Move the remaining udev rules files to the lvm2 package as there is no real reason to have them packaged separately. List all udev files explicitly in the FILES variables so that someone will have to make an active decision where to package any new udev files added in the future. Co-authored-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Fredrik Hugosson <fredrik.hugosson@axis.com> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: upgrade 2.03.25 -> 2.03.26Yi Zhao2024-09-112-36/+2
| | | | | | | | | | | ChangeLog: https://gitlab.com/lvmteam/lvm2/-/tags/v2_03_26 Drop 0001-configure.ac-check-egrep.patch as the issue has been fixed upstream. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libdevmapper: Inherit nopackagesPeter Kjellerstedt2024-08-091-0/+2
| | | | | | | | This fixes errors from buildhistory changes where packages-split would be empty. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: install all systemd service filesMarkus Volk2024-07-151-1/+1
| | | | | | | | | | | | | This fixes an install-vs-shipped issue NOTE: Executing Tasks ERROR: lvm2-2.03.25-r0 do_package: QA Issue: lvm2: Files/directories were installed but not shipped in any package: /usr/lib/systemd/system/lvm-devices-import.path /usr/lib/systemd/system/lvm-devices-import.service Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. lvm2: 2 installed and not shipped files. [installed-vs-shipped] Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: upgrade 2.03.24 -> 2.03.25Wang Mingyu2024-07-153-13/+13
| | | | | | | | | | | | | | | | | | | 0001-implement-libc-specific-reopen_stream.patch 0001-include-libgen.h-for-basename.patch refreshed for 2.03.25 Changelog: ============= - Utilize more radix_tree instead of dm_hash and btree. - Refactor DM uuid caching from device_mapper directory. - Enhance checking for DM uuid device. - Fix lvm shell command completion on tab key (2.03.24). - Avoid lockd_vg call to lvmlockd for local VGs. - Allow forced change of locktype from none. - Handle OPTIONS defined in /etc/sysconfig/lvmlockd. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: restore Upstream-StatusMartin Jansa2024-05-301-0/+2
| | | | | | | | | | | | | * accidentally removed in: https://git.openembedded.org/meta-openembedded/diff/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch?id=cc4e9fbd823a9af1f6b8f622ce86d62172ee9ade * fixes: ERROR: QA Issue: Missing Upstream-Status in patch TOPDIR/meta-oe/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch Please add according to https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#patch-upstream-status . [patch-status] Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: remove subitted patchMarkus Volk2024-05-2814-105/+67
| | | | | | | | | | | | | | devmapper update also updated lvm2. Thus build fails with: patching file daemons/lvmdbusd/utils.py Hunk #1 FAILED at 778. 1 out of 1 hunk FAILED -- rejects in file daemons/lvmdbusd/utils.py - Drop the submitted patch - Move PV to lvm2.inc to ensure we keep it in sync for libdevmapper and lvm2 - refresh patches Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libdevmapper: upgrade 2.03.22 -> 2.03.24Wang Mingyu2024-05-282-1/+1
| | | | | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Start WORKDIR -> UNPACKDIR transitionKhem Raj2024-05-231-1/+1
| | | | | | | Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: Fix build with musl 1.5.2+Khem Raj2024-03-252-0/+33
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: 2.03.16 -> 2.03.22Kai Kang2023-12-079-44/+147
| | | | | | | | | | | | | Update lvm2 from 2.03.16 to 2.03.22. * remove 0002-Guard-use-of-mallinfo-with-__GLIBC__.patch which has done in upstream already * add patch to check egrep & grep * rebase patches * add package config 'dbus' and fix errors about it Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* *.patch: add Upstream-Status to all patchesMartin Jansa2023-06-212-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: use bfd even with ld-is-gold in DISTRO_FEATURESMartin Jansa2022-09-111-0/+4
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: upgrade 2.03.11 -> 2.03.16Wang Mingyu2022-09-065-16/+21
| | | | | | | | | | | 0005-do-not-build-manual.patch 0006-start-lvm2-monitor.service-after-tmp.mount.patch refreshed for new version. Add bash to RDEPENDS. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* 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>
* lvm2: do not install systemd units/initscripts when building native SDK toolsLuca Boccassi2021-11-171-7/+10
| | | | | | | | Nothing picks them up, so the build fails. Required to be able to build native tools like systemd-analyze. Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-032-16/+16
| | | | | | | | | | 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-025-44/+11
| | | | | | | | | | | 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-282-7/+11
| | | | | | | | | 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-202-0/+26
| | | | | | | | | 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: remove service template from SYSTEMD_SERVICEKai Kang2020-06-081-2/+6
| | | | | | | | | Remove systemd service template lvm2-pvscan@.service from SYSTEMD_SERVICE. It should be started/stopped in udev rules file 69-dm-lvm-metad.rules. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2/libdevmapper: 2.03.05 -> 2.03.06Zheng Ruoqin2019-11-068-369/+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-177-19/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-102-0/+40
| | | | | | | | | | | | | | | | | 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/libdevmapper: Make it build for nativePeter Kjellerstedt2019-09-112-0/+79
| | | | | | | | 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 blkdeactivate failed with command not foundHongxu Jia2019-09-032-1/+80
| | | | | | | | | | | | | | | | | | 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-243-67/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-242-3/+7
| | | | | | | | | | | | | | 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>
* 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-038-86/+45
| | | | | | | | | | | | | | | 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: lvmdiskscan always print out "/dev/hdc: open failed: No medium found".Jiping Ma2019-02-252-0/+33
| | | | | | | | | | commit [57bb46c5e7f8] introduce this issue. "/dev/hdc: open failed: No medium found" will be print out after run lvmdiskscan. change dev_open_readonly() to dev_open_readonly_quiet() in fuction _dev_get_size_dev(). Signed-off-by: Jiping Ma <jiping.ma2@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* lvm2: fix lvm2-monitor.service startup failedChangqing Li2019-02-222-1/+34
| | | | | | | | | | | | Issue: vm2-monitor.service: Failed to create lvm2-monitor.service/start: Unit lvm2-lvmetad.socket not found lvmetad have been removed by upstream, but this part is missed, backport fix from upstream Signed-off-by: Changqing Li <changqing.li@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>