'-ne' >> '!=' for LVM2 static support to work properly; bug #58816.
authorTim Yamin <plasmaroo@gentoo.org>
Thu, 29 Jul 2004 20:38:35 +0000 (20:38 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Thu, 29 Jul 2004 20:38:35 +0000 (20:38 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@122 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_initrd.sh
genkernel

index 75b88fd9668212c4146a01df52dc54885bf005fe..78a468724d72cc9c7394ad46628c6d14c0871e5d 100644 (file)
@@ -93,7 +93,7 @@ create_base_initrd_sys() {
        # LVM2
        if [ -e '/sbin/vgscan.static' -a -e '/sbin/vgchange.static' ]
        then
-               if [ "${CMD_NOLVM2}" -ne '1' ]
+               if [ "${CMD_NOLVM2}" != '1' ]
                then
                        cp /sbin/vgscan.static "${TEMP}/initrd-temp/bin/vgscan" ||
                                gen_die 'Could not copy over vgscan!'
index 65fa1e78049dae2a5aa4bb5bd131c57ea656830f..d5545760df03ed1a067884570292c49d4c2131da 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -215,7 +215,7 @@ then
        fi
 
        compile_devfsd
-       compile_udev
+       [ "${CMD_UDEV}" ] && compile_udev
 
        # Create initrd
        create_initrd