Add patch for turning off LVM and EVMS2 optionally at boot time even if compiled...
authorTim Yamin <plasmaroo@gentoo.org>
Thu, 27 Jan 2005 19:27:19 +0000 (19:27 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Thu, 27 Jan 2005 19:27:19 +0000 (19:27 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@164 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc
genkernel

index f7e5b63490f00d0d08ce443af3b60fb709727227..1d5f7466db670a811f8df51bc29119a9e30a9f57 100644 (file)
@@ -8,6 +8,8 @@
 
 USE_DEVFS_NORMAL=1
 USE_UDEV_NORMAL=2
+USE_EVMS_NORMAL=1
+USE_LVM2_NORMAL=1
 
 if [ "$$" != '1' ]
 then
@@ -46,6 +48,12 @@ do
                nodevfs)
                        USE_DEVFS_NORMAL=0
                ;;
+               nolvm2)
+                       USE_LVM2_NORMAL=0
+               ;;
+               noevms)
+                       USE_EVMS_NORMAL=0
+               ;;
                udev)
                        USE_UDEV_NORMAL=1
                        USE_DEVFS_NORMAL=0
@@ -246,7 +254,7 @@ then
        devfsd /dev -np
 fi
 
-if [ "${DO_lvm2}" ]
+if [ "${DO_lvm2}" -a "{USE_LVM2_NORMAL}" -eq '1' ]
 then
        if [ -e '/sbin/vgscan' -a -e '/sbin/vgchange' ]
        then
@@ -257,7 +265,7 @@ then
        fi
 fi
 
-if [ "${DO_evms2}" ]
+if [ "${DO_evms2}" -a "{USE_LVM2_NORMAL}" -eq '1' ]
 then
        if [ -e '/sbin/evms_activate' ]
        then
index 48d078369c4306b11f36319bf2d7d51efc386198..544d8be46ef4f5300371b5489c4b653d0ed8357f 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Genkernel v3
 
-GK_V='3.1.0e'
+GK_V='3.1.0f'
 TEMP='/var/tmp/genkernel'
 TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.