summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2009-07-04 13:26:45 -0500
committerAndrew Gaffney <agaffney@gentoo.org>2009-07-04 13:26:45 -0500
commite52508607b5beb6c2d4f00648f5667f67e01b2c3 (patch)
treeb04689b8f4096a812af7c3bb18a8371a3c6e6f2d /gen_funcs.sh
parentRestore BOOTLOADER="grub" example line in genkernel.conf for gentoo bug #274768 (diff)
downloadgenkernel-e52508607b5beb6c2d4f00648f5667f67e01b2c3.tar.gz
genkernel-e52508607b5beb6c2d4f00648f5667f67e01b2c3.tar.bz2
genkernel-e52508607b5beb6c2d4f00648f5667f67e01b2c3.zip
Remove code to check for host kernel LOOP support for gentoo bug #275757
Diffstat (limited to 'gen_funcs.sh')
-rwxr-xr-xgen_funcs.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/gen_funcs.sh b/gen_funcs.sh
index 00416650..b93e3524 100755
--- a/gen_funcs.sh
+++ b/gen_funcs.sh
@@ -236,23 +236,6 @@ gen_die() {
exit 1
}
-has_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 a standard dev loop device, assume loop is compiled into the
- # kernel or the module is loaded
- return 0
- else
- return 1
- fi
-}
-
isBootRO()
{
return $(awk '( $2 == "'${BOOTDIR}'" && $4 ~ /(^|,)ro(,|$)/){ I=1; exit }END{print !I }' /proc/mounts);