From e27358d67e925114e36e1fd835510fbe73580db2 Mon Sep 17 00:00:00 2001 From: Tim Yamin Date: Mon, 10 Jan 2005 16:35:00 +0000 Subject: [PATCH] Add --evms2 patch by Eric Edgar; bug #77385. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@158 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_cmdline.sh | 8 +++++--- gen_initrd.sh | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gen_cmdline.sh b/gen_cmdline.sh index b02e105..7f7fa96 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -63,6 +63,8 @@ longusage() { echo " --bootsplash= Force bootsplash using " echo " --gensplash= Force gensplash using " echo " --do-keymap-auto Forces keymap selection at boot" + echo " --evms2 Include EVMS2 support" + echo " --> 'emerge evms' in the host operating system first" echo " --lvm2 Include LVM2 support" echo " --bootloader=grub Add new kernel to GRUB configuration" echo " --linuxrc= Specifies a user created linuxrc" @@ -149,9 +151,9 @@ parse_cmdline() { CMD_DOKEYMAPAUTO=1 print_info 2 "CMD_DOKEYMAPAUTO: $CMD_DOKEYMAPAUTO" ;; - --no-evms2) - CMD_NOEVMS2=1 - print_info 2 'CMD_NOEVMS2: 1' + --evms2) + CMD_EVMS2=1 + print_info 2 'CMD_EVMS2: 1' ;; --lvm2) CMD_LVM2=1 diff --git a/gen_initrd.sh b/gen_initrd.sh index 409c24b..2d1b408 100644 --- a/gen_initrd.sh +++ b/gen_initrd.sh @@ -128,9 +128,9 @@ create_base_initrd_sys() { fi # EVMS2 - if [ -e '/sbin/evms_activate' ] + if [ "${CMD_EVMS2}" -eq '1' ] then - if [ "${CMD_NOEVMS2}" != '1' ] + if [ -e '/sbin/evms_activate' ] then print_info 1 'EVMS2: Adding support...' mkdir -p ${TEMP}/initrd-temp/lib -- 2.26.2