Changeset 19595


Ignore:
Timestamp:
2010-02-12T02:37:02+01:00 (6 years ago)
Author:
thepeople
Message:

Here is LVM support for OpenWRT. It introduces 3 new packages:

  • kmod-dm for the device mapper kernel module.
  • kmod-libdevmapper for the device-mapper library.
  • kmod-lvm2 for the lvm tool.

Note that it currently does not create the symlinks for all the lvm
tools, so you have to use lvm pvs rather than just pvs.
Thanks Stefan Monnier

Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/hotplug2-common.rules

    r17792 r19595  
    3535} 
    3636 
     37DEVICENAME == device-mapper { 
     38       nothrottle 
     39       makedev /dev/mapper/control 0600 
     40} 
     41 
     42 
    3743DEVPATH is set { 
    3844        nothrottle 
  • trunk/package/kernel/modules/block.mk

    r19271 r19595  
    361361 
    362362 
     363define KernelPackage/dm 
     364  SUBMENU:=$(BLOCK_MENU) 
     365  TITLE:=Device Mapper 
     366  # All the "=n" are unnecessary, they're only there 
     367  # to stop the config from asking the question. 
     368  # MIRROR is M because I've needed it for pvmove. 
     369  KCONFIG:= \ 
     370       CONFIG_BLK_DEV_MD=n \ 
     371       CONFIG_DM_DEBUG=n \ 
     372       CONFIG_DM_CRYPT=n \ 
     373       CONFIG_DM_UEVENT=n \ 
     374       CONFIG_DM_DELAY=n \ 
     375       CONFIG_DM_MULTIPATH=n \ 
     376       CONFIG_DM_ZERO=n \ 
     377       CONFIG_DM_SNAPSHOT=n \ 
     378       CONFIG_MD=y \ 
     379       CONFIG_BLK_DEV_DM \ 
     380       CONFIG_DM_MIRROR 
     381  FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX) 
     382  AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-region-hash dm-mirror dm-log) 
     383endef 
     384 
     385define KernelPackage/dm/description 
     386 Kernel module necessary for LVM2 support 
     387endef 
     388 
     389$(eval $(call KernelPackage,dm)) 
     390 
     391 
    363392define KernelPackage/pata-rb153-cf 
    364393$(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le) 
Note: See TracChangeset for help on using the changeset viewer.