Added fix for bug #103717.
authorChris Gianelloni <wolf31o2@gentoo.org>
Fri, 28 Oct 2005 18:44:39 +0000 (18:44 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Fri, 28 Oct 2005 18:44:39 +0000 (18:44 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@316 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_funcs.sh

index 3e0aa5e3ee4419de3111ac09ce67e1b866bef484..79773399eaec5b946dbf246c5e0f55d860dcbc99 100755 (executable)
@@ -234,7 +234,12 @@ gen_die() {
 }
 
 has_loop() {
-       dmesg | egrep -q '^loop:'
+       if [ -e /var/log/dmesg ]
+       then
+               cat /var/log/dmesg | egrep -q '^loop:'
+       else
+               dmesg | egrep -q '^loop:'
+       fi
        if [ -e '/dev/loop0' -o -e '/dev/loop/0' -a ${PIPESTATUS[1]} ]
        then
                # We found devfs or standard dev loop device, assume