summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-02-11 17:16:27 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2012-02-11 17:16:27 -0800
commit45e8dbfa0e6b193662b2c0273f90e66452c4a102 (patch)
tree7067f5ffe3c1c1a0c6640f7268475381d4f20bb9 /gen_compile.sh
parentlinuxrc /usr mounting (diff)
downloadgenkernel-45e8dbfa0e6b193662b2c0273f90e66452c4a102.tar.gz
genkernel-45e8dbfa0e6b193662b2c0273f90e66452c4a102.tar.bz2
genkernel-45e8dbfa0e6b193662b2c0273f90e66452c4a102.zip
device-mapper "update". It was merged into LVM2-2.02.67 upstream in 2010. Bug #398467 is wrong for the device-mapper update.
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-xgen_compile.sh33
1 files changed, 1 insertions, 32 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 68dabdb..aa0f04c 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -551,38 +551,7 @@ compile_dmraid() {
}
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!"
- cd "${TEMP}"
- rm -rf "${DEVICE_MAPPER_DIR}"
- /bin/tar -zxpf "${DEVICE_MAPPER_SRCTAR}"
- [ ! -d "${DEVICE_MAPPER_DIR}" ] &&
- gen_die "device-mapper directory ${DEVICE_MAPPER_DIR} invalid"
- cd "${DEVICE_MAPPER_DIR}"
- apply_patches device-mapper ${DEVICE_MAPPER_VER}
- CFLAGS="-fPIC" \
- ./configure --prefix=${TEMP}/device-mapper --enable-static_link \
- --disable-selinux >> ${LOGFILE} 2>&1 ||
- gen_die 'Configuring device-mapper failed!'
- print_info 1 'device-mapper: >> Compiling...'
- compile_generic '' utils
- compile_generic 'install' utils
- print_info 1 ' >> Copying to cache...'
- cd "${TEMP}"
- rm -rf "${TEMP}/device-mapper/man" ||
- gen_die 'Could not remove manual pages!'
- strip "${TEMP}/device-mapper/sbin/dmsetup" ||
- gen_die 'Could not strip dmsetup binary!'
- /bin/tar -jcpf "${DEVICE_MAPPER_BINCACHE}" device-mapper ||
- gen_die 'Could not tar up the device-mapper binary!'
- [ -f "${DEVICE_MAPPER_BINCACHE}" ] ||
- gen_die 'device-mapper cache not created!'
- cd "${TEMP}"
- rm -rf "${DEVICE_MAPPER_DIR}" > /dev/null
- rm -rf "${TEMP}/device-mapper" > /dev/null
- fi
+ compile_lvm
}
compile_e2fsprogs() {