From: Chris Gianelloni Date: Fri, 28 Oct 2005 18:44:39 +0000 (+0000) Subject: Added fix for bug #103717. X-Git-Tag: v3.4.10.902~436 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e94135c4470f3c50fc8ab720df80dd90795ec4c8;p=genkernel.git Added fix for bug #103717. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@316 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/gen_funcs.sh b/gen_funcs.sh index 3e0aa5e..7977339 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -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