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.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@552 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 17 years ago
parent d9cffe7d03
commit a935750c44

@ -2,6 +2,13 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $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, 02 Nov 2007; Chris Gianelloni <wolf31o2@gentoo.org> ++, gen_initramfs.sh,
gen_initrd.sh, genkernel: gen_initrd.sh, genkernel:
Reverting the removal of generic/modprobe for bug #197730. This is genkernel Reverting the removal of generic/modprobe for bug #197730. This is genkernel

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
compile_kernel_args() compile_kernel_args() {
{
local ARGS local ARGS
ARGS='' ARGS=''
@ -207,7 +206,6 @@ compile_generic() {
esac esac
shift 2 shift 2
# the eval usage is needed in the next set of code # the eval usage is needed in the next set of code
# as ARGS can contain spaces and quotes, eg: # as ARGS can contain spaces and quotes, eg:
# ARGS='CC="ccache gcc"' # ARGS='CC="ccache gcc"'
@ -534,22 +532,22 @@ compile_dmraid() {
cd "${DMRAID_DIR}" cd "${DMRAID_DIR}"
print_info 1 'dmraid: >> Configuring...' print_info 1 'dmraid: >> Configuring...'
LDFLAGS="-L${TEMP}/device-mapper/lib" \ LDFLAGS="-L${TEMP}/device-mapper/lib" \
CFLAGS="-I${TEMP}/device-mapper/include" \ CFLAGS="-I${TEMP}/device-mapper/include" \
CPPFLAGS="-I${TEMP}/device-mapper/include" \ CPPFLAGS="-I${TEMP}/device-mapper/include" \
./configure --enable-static_link --prefix=${TEMP}/dmraid >> ${LOGFILE} 2>&1 || ./configure --enable-static_link --prefix=${TEMP}/dmraid >> ${LOGFILE} 2>&1 ||
gen_die 'Configure of dmraid failed!' gen_die 'Configure of dmraid failed!'
# We dont necessarily have selinux installed yet... look into # We dont necessarily have selinux installed yet... look into
# selinux global support in the future. # selinux global support in the future.
sed -i tools/Makefile -e "s|DMRAIDLIBS += -lselinux||g" sed -i tools/Makefile -e "s|DMRAIDLIBS += -lselinux||g"
###echo "DMRAIDLIBS += -lselinux -lsepol" >> tools/Makefile ###echo "DMRAIDLIBS += -lselinux -lsepol" >> tools/Makefile
mkdir -p "${TEMP}/dmraid" mkdir -p "${TEMP}/dmraid"
print_info 1 'dmraid: >> Compiling...' print_info 1 'dmraid: >> Compiling...'
compile_generic '' utils compile_generic '' utils
#compile_generic 'install' utils #compile_generic 'install' utils
mkdir ${TEMP}/dmraid/sbin mkdir ${TEMP}/dmraid/sbin
install -m 0755 -s tools/dmraid "${TEMP}/dmraid/sbin/dmraid" install -m 0755 -s tools/dmraid "${TEMP}/dmraid/sbin/dmraid"
print_info 1 ' >> Copying to bincache...' print_info 1 ' >> Copying to bincache...'
cd "${TEMP}/dmraid" cd "${TEMP}/dmraid"
/bin/tar -cjf "${DMRAID_BINCACHE}" sbin/dmraid || /bin/tar -cjf "${DMRAID_BINCACHE}" sbin/dmraid ||

@ -636,6 +636,7 @@ startVolumes() {
good_msg "Scanning for Volume Groups" good_msg "Scanning for Volume Groups"
/bin/vgscan --ignorelockingfailure --mknodes 2>/dev/null /bin/vgscan --ignorelockingfailure --mknodes 2>/dev/null
sleep 2
good_msg "Activating Volume Groups" good_msg "Activating Volume Groups"
/bin/vgchange -ay --ignorelockingfailure 2>/dev/null /bin/vgchange -ay --ignorelockingfailure 2>/dev/null

@ -108,6 +108,10 @@ do
dolvm) dolvm)
USE_LVM_NORMAL=1 USE_LVM_NORMAL=1
;; ;;
dolvm2)
bad_msg 'Using dolvm2 is deprecated, use dolvm, instead.'
USE_LVM_NORMAL=1
;;
domdadm) domdadm)
USE_MDADM=1 USE_MDADM=1
;; ;;
@ -121,6 +125,10 @@ do
doevms) doevms)
USE_EVMS_NORMAL=1 USE_EVMS_NORMAL=1
;; ;;
doevms2)
bad_msg 'Using doevms2 is deprecated, use doevms, instead.'
USE_EVMS_NORMAL=1
;;
# Debug Options # Debug Options
debug) debug)
DEBUG='yes' DEBUG='yes'

Loading…
Cancel
Save