Make sure we still allow dolvm2/doevms2 on the kernel command line and give a warning...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 7 Nov 2007 20:03:53 +0000 (20:03 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 7 Nov 2007 20:03:53 +0000 (20:03 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@552 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
gen_compile.sh
generic/initrd.scripts
generic/linuxrc

index 20ebcf53b5d6c8f7d6bdc09705fb65eb93582a1e..6f9c6f84b8319593dfaa8ecb8e7f3e6548a8d01e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
 # 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
index 70a2c79821c9d4a016dc33bc788677cc364eb7cc..333d19197f2e0dbf5de629be69c548da58043d42 100644 (file)
@@ -1,7 +1,6 @@
 #!/bin/bash
 
-compile_kernel_args()
-{
+compile_kernel_args() {
        local ARGS
 
        ARGS=''
@@ -207,7 +206,6 @@ compile_generic() {
        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"'
@@ -534,22 +532,22 @@ compile_dmraid() {
                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 ||
index 49d238aa025869cc189e080000b38d0a1490ca93..ebb44238cc70463808c645d33612dde7bc57cd62 100644 (file)
@@ -636,6 +636,7 @@ startVolumes() {
 
                        good_msg "Scanning for Volume Groups"
                        /bin/vgscan --ignorelockingfailure --mknodes 2>/dev/null
+                       sleep 2
                        good_msg "Activating Volume Groups"
                        /bin/vgchange -ay --ignorelockingfailure 2>/dev/null
 
index 2bde1fbaf41481c3456d408bfb0a0fa94dfb7a67..7e2e5f882df86777ae9e2e63a1514c114b1ec4ec 100644 (file)
@@ -108,6 +108,10 @@ do
                dolvm)
                        USE_LVM_NORMAL=1
                ;;
+               dolvm2)
+                       bad_msg 'Using dolvm2 is deprecated, use dolvm, instead.'
+                       USE_LVM_NORMAL=1
+               ;;
                domdadm)
                        USE_MDADM=1
                ;;
@@ -121,6 +125,10 @@ do
                doevms)
                        USE_EVMS_NORMAL=1
                ;;
+               doevms2)
+                       bad_msg 'Using doevms2 is deprecated, use doevms, instead.'
+                       USE_EVMS_NORMAL=1
+               ;;
                # Debug Options
                debug)
                        DEBUG='yes'