#18792: cryptsetup fals due to dm_mod: Unknown symbol dm_kobject_release
------------------------+------------------------
 Reporter:  rossbcan@…  |      Owner:  developers
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:
Component:  packages    |    Version:  Trunk
 Keywords:  kmod-dm     |
------------------------+------------------------
 opkg install cryptsetup
 insmd fail
 dmesg
 ...
 dm_mod: Unknown symbol dm_kobject_release (err 0)
 many other Unknown symbols (cascade of dm_mod fail)

 looked into this and, it is a consequence of this kernel change:

 https://lkml.org/lkml/2014/2/7/196

 which basically moved this symbol to builtin, but Makefile does not list
 as dependency. so, patch:
 target/linux/x86_64/patches/012-dm_kobject_release.patch

 {{{
 --- a/drivers/md/Makefile       2015-01-20 10:38:04.415713013 -0500
 +++ b/drivers/md/Makefile       2015-01-20 10:42:28.386283490 -0500
 @@ -3,7 +3,8 @@
  #

  dm-mod-y       += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
 -                  dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o
 +                  dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o dm-stats.o \
 +                  dm-builtin.o
  dm-multipath-y += dm-path-selector.o dm-mpath.o
  dm-snapshot-y  += dm-snap.o dm-exception-store.o dm-snap-transient.o \
                     dm-snap-persistent.o
 }}}

 also, a suggestion, fix dependencies in
 feeds/packages/utils/cryptsetup/Makefile

 {{{
 define Package/cryptsetup/Default
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=Cryptsetup
   #DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper
 +@KERNEL_DIRECT_IO
   DEPENDS:=+libblkid +libuuid +libpopt +libdevmapper +@KERNEL_DIRECT_IO \
            +kmod-crypto-aes +kmod-crypto-cbc +kmod-crypto-iv kmod-crypto-
 xts
   URL:=http://code.google.com/p/cryptsetup/
 endef
 }}}

 kmod-dm - 3.14.4-1

--
Ticket URL: <https://dev.openwrt.org/ticket/18792>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to