# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 07 Nov 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_compile.sh,
+ generic/initrd.scripts, generic/linuxrc:
+ Make sure we still allow dolvm2/doevms2 on the kernel command line and give
+ a warning. I've also added a 2 second delay between vgscan and vgchange.
+ Thanks to Robin H. Johnson <robbat2@gentoo.org> for suggesting the changes
+ and testing.
+
02 Nov 2007; Chris Gianelloni <wolf31o2@gentoo.org> ++, gen_initramfs.sh,
gen_initrd.sh, genkernel:
Reverting the removal of generic/modprobe for bug #197730. This is genkernel
#!/bin/bash
-compile_kernel_args()
-{
+compile_kernel_args() {
local ARGS
ARGS=''
esac
shift 2
-
# the eval usage is needed in the next set of code
# as ARGS can contain spaces and quotes, eg:
# ARGS='CC="ccache gcc"'
cd "${DMRAID_DIR}"
print_info 1 'dmraid: >> Configuring...'
- LDFLAGS="-L${TEMP}/device-mapper/lib" \
- CFLAGS="-I${TEMP}/device-mapper/include" \
- CPPFLAGS="-I${TEMP}/device-mapper/include" \
- ./configure --enable-static_link --prefix=${TEMP}/dmraid >> ${LOGFILE} 2>&1 ||
- gen_die 'Configure of dmraid failed!'
-
- # We dont necessarily have selinux installed yet... look into
- # selinux global support in the future.
- sed -i tools/Makefile -e "s|DMRAIDLIBS += -lselinux||g"
- ###echo "DMRAIDLIBS += -lselinux -lsepol" >> tools/Makefile
+ LDFLAGS="-L${TEMP}/device-mapper/lib" \
+ CFLAGS="-I${TEMP}/device-mapper/include" \
+ CPPFLAGS="-I${TEMP}/device-mapper/include" \
+ ./configure --enable-static_link --prefix=${TEMP}/dmraid >> ${LOGFILE} 2>&1 ||
+ gen_die 'Configure of dmraid failed!'
+
+ # We dont necessarily have selinux installed yet... look into
+ # selinux global support in the future.
+ sed -i tools/Makefile -e "s|DMRAIDLIBS += -lselinux||g"
+ ###echo "DMRAIDLIBS += -lselinux -lsepol" >> tools/Makefile
mkdir -p "${TEMP}/dmraid"
print_info 1 'dmraid: >> Compiling...'
- compile_generic '' utils
- #compile_generic 'install' utils
- mkdir ${TEMP}/dmraid/sbin
- install -m 0755 -s tools/dmraid "${TEMP}/dmraid/sbin/dmraid"
+ compile_generic '' utils
+ #compile_generic 'install' utils
+ mkdir ${TEMP}/dmraid/sbin
+ install -m 0755 -s tools/dmraid "${TEMP}/dmraid/sbin/dmraid"
print_info 1 ' >> Copying to bincache...'
cd "${TEMP}/dmraid"
/bin/tar -cjf "${DMRAID_BINCACHE}" sbin/dmraid ||