Here is LVM support for OpenWRT. It introduces 3 new packages: - kmod-dm for the...
authorTravis Kemen <thepeople@openwrt.org>
Fri, 12 Feb 2010 01:37:02 +0000 (01:37 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Fri, 12 Feb 2010 01:37:02 +0000 (01:37 +0000)
SVN-Revision: 19595

package/base-files/files/etc/hotplug2-common.rules
package/kernel/modules/block.mk

index d6dd6e8a9b3f50a92f42c99bde1279f12962d537..a7aba35a9312aafdec8e9bbf3a58820e3672d2e3 100644 (file)
@@ -34,6 +34,12 @@ DEVPATH is set, SUBSYSTEM ~~ (input) {
        makedev /dev/input/%DEVICENAME% 0644
 }
 
+DEVICENAME == device-mapper {
+       nothrottle
+       makedev /dev/mapper/control 0600
+}
+
+
 DEVPATH is set {
        nothrottle
        makedev /dev/%DEVICENAME% 0644
index b1804337cdf70395a37af1d41e1c4f26833c15f3..34c6f992764c772fae858975fbddd59f35c7a16a 100644 (file)
@@ -360,6 +360,35 @@ endef
 $(eval $(call KernelPackage,nbd))
 
 
+define KernelPackage/dm
+  SUBMENU:=$(BLOCK_MENU)
+  TITLE:=Device Mapper
+  # All the "=n" are unnecessary, they're only there
+  # to stop the config from asking the question.
+  # MIRROR is M because I've needed it for pvmove.
+  KCONFIG:= \
+       CONFIG_BLK_DEV_MD=n \
+       CONFIG_DM_DEBUG=n \
+       CONFIG_DM_CRYPT=n \
+       CONFIG_DM_UEVENT=n \
+       CONFIG_DM_DELAY=n \
+       CONFIG_DM_MULTIPATH=n \
+       CONFIG_DM_ZERO=n \
+       CONFIG_DM_SNAPSHOT=n \
+       CONFIG_MD=y \
+       CONFIG_BLK_DEV_DM \
+       CONFIG_DM_MIRROR
+  FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-region-hash dm-mirror dm-log)
+endef
+
+define KernelPackage/dm/description
+ Kernel module necessary for LVM2 support
+endef
+
+$(eval $(call KernelPackage,dm))
+
+
 define KernelPackage/pata-rb153-cf
 $(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
   TITLE:=RouterBOARD 153 CF Slot support