then
if [ "${CMD_NOLVM2}" != '1' ]
then
+ print_info 1 'lvm2: Adding support...'
cp /sbin/lvm "${TEMP}/initrd-temp/bin/lvm" ||
gen_die 'Could not copy over lvm!'
ln -sf "./lvm" "${TEMP}/initrd-temp/bin/vgscan" ||
ln -sf "./lvm" "${TEMP}/initrd-temp/bin/vgchange" ||
gen_die 'Could not symlink lvm -> vgchange!'
fi
-# else
-# print_warning 1 "initrd: No LVM2 static binaries found; skipping support..."
fi
+
+ #EVMS2
+ if [ -e '/sbin/evms_activate' ]
+ then
+ if [ "${CMD_NOEVMS2}" -ne '1' ]
+ then
+ print_info 1 'evms2: Adding support...'
+ mkdir -p ${TEMP}/initrd-temp/lib
+ cp -a /lib/ld-* "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/libc-* /lib/libc.* "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/libdl-* /lib/libdl.* "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/libpthread* "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/libuuid*so* "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/libevms*so* "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/evms "${TEMP}/initrd-temp/lib" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /lib/evms/* "${TEMP}/initrd-temp/lib/evms" || gen_die 'Could not copy files for EVMS2!'
+ cp -a /etc/evms.conf "${TEMP}/initrd-temp/etc" || gen_die 'Could not copy files for EVMS2!'
+ cp /sbin/evms_activate "${TEMP}/initrd-temp/bin/evms_activate" || gen_die 'Could not copy over vgscan!'
+ fi
+ fi
for i in '[' ash basename cat chroot clear cp dirname echo env false find \
grep gunzip gzip ln ls loadkmap losetup lsmod mkdir mknod more mount mv \
# Only sections that are in by default or those that
# are not module groups need to be defined here...
-HWOPTS='usb firewire keymap cache lvm2'
-MY_HWOPTS='usb firewire lvm2'
+HWOPTS='usb firewire keymap cache lvm2 evms2'
+MY_HWOPTS='usb firewire lvm2 evms2'
QUIET=1
ROOT_LINKS='bin sbin lib lib64 boot usr opt'