diff options
author | Andrew Gaffney <agaffney@gentoo.org> | 2009-07-04 13:26:45 -0500 |
---|---|---|
committer | Andrew Gaffney <agaffney@gentoo.org> | 2009-07-04 13:26:45 -0500 |
commit | e52508607b5beb6c2d4f00648f5667f67e01b2c3 (patch) | |
tree | b04689b8f4096a812af7c3bb18a8371a3c6e6f2d /gen_funcs.sh | |
parent | Restore BOOTLOADER="grub" example line in genkernel.conf for gentoo bug #274768 (diff) | |
download | genkernel-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-x | gen_funcs.sh | 17 |
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); |