From 85f9e6c4619f1fb034d7391a6705e7b749e37a90 Mon Sep 17 00:00:00 2001 From: tsunam Date: Tue, 24 Feb 2009 15:57:24 -0800 Subject: [PATCH] multipath additions --- gen_cmdline.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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}" -- 2.26.2