Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:overlayfs commit in: defaults/
Date: Mon, 07 Aug 2017 18:48:25
Message-Id: 1502131695.1b73a2ea3f152c6b0df04dc83b32a3cd4972de2e.zerochaos@gentoo
1 commit: 1b73a2ea3f152c6b0df04dc83b32a3cd4972de2e
2 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 7 18:48:15 2017 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 7 18:48:15 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1b73a2ea
7
8 /proc/sys/kernel/hotplug is pretty deprecated, only try to write to it if it exists
9
10 defaults/linuxrc | 5 ++++-
11 1 file changed, 4 insertions(+), 1 deletion(-)
12
13 diff --git a/defaults/linuxrc b/defaults/linuxrc
14 index 9ab44c8..6bb1b98 100644
15 --- a/defaults/linuxrc
16 +++ b/defaults/linuxrc
17 @@ -385,7 +385,10 @@ good_msg 'Activating mdev'
18 touch /dev/mdev.seq
19
20 # Setup hotplugging for firmware loading
21 -echo /sbin/mdev > /proc/sys/kernel/hotplug
22 +if [ -f "/proc/sys/kernel/hotplug" ];
23 +then
24 + echo /sbin/mdev > /proc/sys/kernel/hotplug
25 +fi
26
27 # Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
28 if [ -z "${DO_modules}" ]