|
|
@ -254,16 +254,31 @@ create_evms2_cpio(){
|
|
|
|
then
|
|
|
|
then
|
|
|
|
print_info 1 ' EVMS2: Adding support...'
|
|
|
|
print_info 1 ' EVMS2: Adding support...'
|
|
|
|
mkdir -p ${TEMP}/initramfs-evms2-temp/lib
|
|
|
|
mkdir -p ${TEMP}/initramfs-evms2-temp/lib
|
|
|
|
cp -a /lib/ld-* "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
cp -a /lib/ld-* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
cp -a /lib/libc-* /lib/libc.* "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
cp -a /lib/libdl-* /lib/libdl.* "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
if [ -n "`ls /lib/libgcc_s*`" ]
|
|
|
|
cp -a /lib/libpthread* "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
then
|
|
|
|
cp -a /lib/libuuid*so* "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
cp -a /lib/libgcc_s* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
cp -a /lib/libevms*so* "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
cp -a /lib/evms "${TEMP}/initramfs-evms2-temp/lib" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
fi
|
|
|
|
cp -a /lib/evms/* "${TEMP}/initramfs-evms2-temp/lib/evms" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
cp -a /lib/libc-* /lib/libc.* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
cp -a /etc/evms.conf "${TEMP}/initramfs-evms2-temp/etc" || gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
cp /sbin/evms_activate "${TEMP}/initramfs-evms2-temp/sbin/evms_activate" || gen_die 'Could not copy over evms_activate!'
|
|
|
|
cp -a /lib/libdl-* /lib/libdl.* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp -a /lib/libpthread* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp -a /lib/libuuid*so* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp -a /lib/libevms*so* "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp -a /lib/evms "${TEMP}/initramfs-evms2-temp/lib" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp -a /lib/evms/* "${TEMP}/initramfs-evms2-temp/lib/evms" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp -a /etc/evms.conf "${TEMP}/initramfs-evms2-temp/etc" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy files for EVMS2!'
|
|
|
|
|
|
|
|
cp /sbin/evms_activate "${TEMP}/initramfs-evms2-temp/sbin" \
|
|
|
|
|
|
|
|
|| gen_die 'Could not copy over evms_activate!'
|
|
|
|
|
|
|
|
|
|
|
|
# Fix EVMS2 complaining that it can't find the swap utilities.
|
|
|
|
# Fix EVMS2 complaining that it can't find the swap utilities.
|
|
|
|
# These are not required in the initramfs
|
|
|
|
# These are not required in the initramfs
|
|
|
@ -273,7 +288,8 @@ create_evms2_cpio(){
|
|
|
|
done
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cd "${TEMP}/initramfs-evms2-temp/"
|
|
|
|
cd "${TEMP}/initramfs-evms2-temp/"
|
|
|
|
find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-evms2.cpio.gz
|
|
|
|
find . -print | cpio --quiet -o -H newc \
|
|
|
|
|
|
|
|
| gzip -9 > ${CACHE_CPIO_DIR}/initramfs-evms2.cpio.gz
|
|
|
|
rm -r "${TEMP}/initramfs-evms2-temp/"
|
|
|
|
rm -r "${TEMP}/initramfs-evms2-temp/"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|