commit:     12cdca31704000822c50b996facc955d5e3ae5a9
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 15:35:34 2024 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Mon Apr 29 15:35:34 2024 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=12cdca31

gkbuilds/lvm: add 2.03 support

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 gkbuilds/lvm.gkbuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gkbuilds/lvm.gkbuild b/gkbuilds/lvm.gkbuild
index 3006381..27a7521 100644
--- a/gkbuilds/lvm.gkbuild
+++ b/gkbuilds/lvm.gkbuild
@@ -54,6 +54,8 @@ src_install() {
        "${STRIP}" --strip-all "${D}"/usr/sbin/lvm \
                || die "Failed to strip '${D}/usr/sbin/lvm'!"
 
+       # dmsetup.static has moved to libdm/dm-tools/ in 2.03, allow both 
locations for now
+       [ -f libdm/dm-tools/dmsetup.static ] && mv 
libdm/dm-tools/dmsetup.static tools/dmsetup.static
        cp -a tools/dmsetup.static "${D}"/usr/sbin/dmsetup \
                || die "Failed to copy '${S}/tools/dmsetup.static' to 
'${D}/usr/sbin/dmsetup'!"
 

Reply via email to