From e94135c4470f3c50fc8ab720df80dd90795ec4c8 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 28 Oct 2005 18:44:39 +0000 Subject: [PATCH] Added fix for bug #103717. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@316 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_funcs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.26.2