diff options
author | 2009-07-04 13:26:45 -0500 | |
---|---|---|
committer | 2009-07-04 13:26:45 -0500 | |
commit | e52508607b5beb6c2d4f00648f5667f67e01b2c3 (patch) | |
tree | b04689b8f4096a812af7c3bb18a8371a3c6e6f2d | |
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
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | gen_funcs.sh | 17 | ||||
-rwxr-xr-x | genkernel | 17 |
3 files changed, 3 insertions, 34 deletions
@@ -2,6 +2,9 @@ # Copyright 1999-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Distributed under the GPL v2 + 04 Jul 2009; Andrew Gaffney <agaffney@gentoo.org> gen_funcs.sh, genkernel: + Remove code to check for host kernel LOOP support for gentoo bug #275757 + 28 Jun 2009; Andrew Gaffney <agaffney@gentoo.org> defaults/modprobe, genkernel.conf: Restore BOOTLOADER="grub" example line in genkernel.conf for gentoo bug 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); @@ -129,23 +129,6 @@ dump_debugcache NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..." -if [ "${BUILD_RAMDISK}" -ne '0' ] -then - if ! has_loop - then - modprobe loop 2>/dev/null - sleep 3 - if ! has_loop - then - print_error 1 'The build-host kernel does not appear to have loop device support.' - print_error 1 'Please load loop support before running genkernel!' - gen_die 'Load loop support!' - else - print_info 1 'loop: "loop" module loaded successfully...' - fi - fi -fi - # Check BOOTDIR is mounted if isTrue ${CMD_NOINSTALL} then |