Re: ipset make modules_install fails to honor INSTALL_MOD_PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 2020-05-21 21:27, Oskar Berggren wrote:

>make
>make modules
>DESTDIR=... make install
>INSTALL_MOD_PATH=... make modules_install

» make modules_install DESTDIR=/tmp/RT INSTALL_MOD_PATH=/tmp/RT2
make -C /home/jengelh/code/linux M=$PWD/kernel/net \
                KDIR=$PWD/kernel modules_install
make[1]: Entering directory '/home/jengelh/code/linux'
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ip.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_bitmap_port.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ip.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmac.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipmark.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipport.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_ipportnet.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_mac.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_net.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netiface.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netnet.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netport.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_hash_netportnet.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/ipset/ip_set_list_set.ko
  INSTALL /ipset-7.6/kernel/net/netfilter/xt_set.ko
  INSTALL /ipset-7.6/kernel/net/sched/em_ipset.ko
  DEPMOD  5.7.0-rc6-2.gb520bde-default+
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/home/jengelh/code/linux'
modinfo: ERROR: Module alias ip_set_hash_ip not found.

!!! WARNING !!! WARNING !!! WARNING !!!

Your distribution seems to ignore the /lib/modules/<kernelrelease>/extra/
subdirectory, where the ipset kernel modules are installed.

Add the 'extra' directory to the search definition of your depmod
configuration (/etc/depmod.conf or /etc/depmod.d/) and re-run

        depmod <kernelrelease>

otherwise the ipset kernel modules in the extra subdir will be ignored.


» find /tmp/RT2/
/tmp/RT2/
/tmp/RT2/lib
/tmp/RT2/lib/modules
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/sched
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/sched/em_ipset.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/xt_set.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_list_set.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netportnet.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netport.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netnet.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_netiface.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_net.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_mac.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipportnet.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipportip.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipport.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipmark.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ipmac.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_hash_ip.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_bitmap_port.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_bitmap_ipmac.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set_bitmap_ip.ko
/tmp/RT2/lib/modules/5.7.0-rc6-2.gb520bde-default+/extra/netfilter/ipset/ip_set.ko





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux