developer | 100f47c | 2023-02-15 13:25:01 +0800 | [diff] [blame] | 1 | From 3bba45890985b877b823836e78a1c8ac3c878856 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Tue, 31 Jul 2018 15:04:29 +0800 |
| 4 | Subject: [PATCH 4/4] tweak MODPROBE_CMD for cross compile |
| 5 | |
| 6 | Lvm uses variable MODPROBE_CMD at runtime, so build time detection of modprobe |
| 7 | is incorrect. |
| 8 | ------ |
| 9 | |lvm lvcreate --thinpool wrl/pool00 --size 5556m --config devices |
| 10 | { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] |
| 11 | filter=["r|/loop1$|","r|/loop2$|","r|/loop3$|","r|/loop4$|","r|/loop5$|","r|/loop6$|","r|/loop7$|"] } |
| 12 | |tmp/sysroots/x86_64-linux/usr/bin/modprobe: execvp failed: No such file or directory |
| 13 | |tmp/sysroots/x86_64-linux/usr/bin/modprobe failed: 2 |
| 14 | ------ |
| 15 | |
| 16 | Upstream-Status: Inappropriate [oe specific] |
| 17 | |
| 18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 19 | --- |
| 20 | configure.ac | 2 -- |
| 21 | 1 file changed, 2 deletions(-) |
| 22 | |
| 23 | diff --git a/configure.ac b/configure.ac |
| 24 | index e427708..aa374ea 100644 |
| 25 | --- a/configure.ac |
| 26 | +++ b/configure.ac |
| 27 | @@ -1791,8 +1791,6 @@ if test "$BUILD_DMFILEMAPD" = yes; then |
| 28 | fi |
| 29 | |
| 30 | ################################################################################ |
| 31 | -AC_PATH_TOOL(MODPROBE_CMD, modprobe, [], [$PATH_SBIN]) |
| 32 | - |
| 33 | if test -n "$MODPROBE_CMD"; then |
| 34 | AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.]) |
| 35 | fi |
| 36 | -- |
| 37 | 2.7.4 |
| 38 | |