gen_die "Could not find LVM2 source tarball: ${LVM2_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
cd"${TEMP}"
rm -rf ${LVM2_DIR} > /dev/null
tar -zxpf ${LVM2_SRCTAR}||
gen_die 'Could not extract LVM2 source tarball!'
[ -d "${LVM2_DIR}"]||
gen_die 'LVM2 directory ${LVM2_DIR} is invalid!'
rm -rf "${TEMP}/device-mapper" > /dev/null
tar -jxpf "${DEVICE_MAPPER_BINCACHE}" -C "${TEMP}"||
gen_die "Could not extract device-mapper binary cache!";
# I've disabled dietlibc support for the time being since the
# version we use misses a few needed system calls.
@ -438,6 +478,38 @@ compile_devfsd() {
fi
}
compile_device_mapper(){
if[ ! -f "${DEVICE_MAPPER_BINCACHE}"]
then
[ ! -f "${DEVICE_MAPPER_SRCTAR}"]&&
gen_die "Could not find device-mapper source tarball: ${DEVICE_MAPPER_SRCTAR}. Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"