From: tsunam Date: Tue, 24 Feb 2009 23:57:24 +0000 (-0800) Subject: multipath additions X-Git-Tag: v3.4.10.904~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85f9e6c4619f1fb034d7391a6705e7b749e37a90;p=genkernel.git multipath additions --- diff --git a/gen_cmdline.sh b/gen_cmdline.sh index a1ca537..fd1dd56 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -83,6 +83,7 @@ longusage() { echo " --lvm2 Include LVM support" echo " --mdadm Copy /etc/mdadm.conf to initramfs" echo " --dmraid Include DMRAID support" + echo " --multipath Include Multipath support" echo " --slowusb Enables extra pauses for slow USB CD boots" echo " --bootloader=grub Add new kernel to GRUB configuration" echo " --linuxrc= Specifies a user created linuxrc" @@ -275,6 +276,16 @@ parse_cmdline() { CMD_DMRAID=1 print_info 2 "CMD_DMRAID: ${CMD_DMRAID}" ;; + --multipath) + if [ ! -e /usr/include/libdevmapper.h ] + then + echo 'Error: --multipath requires device-mapper to be installed' + echo ' on the host;system; try "emerge device-mapper".' + exit 1 + fi + CMD_MULTIPATH=1 + print_info 2 "CMD_MULTIPATH: ${CMD_MULTIPATH}" + ;; --bootloader=*) CMD_BOOTLOADER=`parse_opt "$*"` print_info 2 "CMD_BOOTLOADER: ${CMD_BOOTLOADER}"