From d1cac89e9823891ac37130e5f2d9f6939d9efe96 Mon Sep 17 00:00:00 2001 From: agaffney Date: Tue, 29 Jul 2008 07:17:10 -0500 Subject: [PATCH] Remove check for >=2.6 for mounting sysfs --- ChangeLog | 3 +++ defaults/initrd.scripts | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8ba223d..a580dff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni # Distributed under the GPL v2 + 29 Jul 2008; Andrew Gaffney defaults/initrd.scripts: + Remove check for >=2.6 for mounting sysfs + 29 Jul 2008; Andrew Gaffney genkernel: Remove check for >=2.6 for 'make prepare' diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index f3646c8..f58e1a4 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -202,12 +202,9 @@ cache_cd_contents() { } mount_sysfs() { - if [ "${KV_2_6_OR_GREATER}" ] - then - mount -t sysfs /sys /sys >/dev/null 2>&1 - ret=$? - [ "$ret" -eq '0' ] || bad_msg "Failed to mount /sys!" - fi + mount -t sysfs /sys /sys >/dev/null 2>&1 + ret=$? + [ "$ret" -eq '0' ] || bad_msg "Failed to mount /sys!" } findnfsmount() { -- 2.26.2