From 406d933dcc443325c4b5d0dc5266e872850fbfe9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 7 Mar 2020 18:23:54 +0200 Subject: [PATCH] mdev: Silence errorS --- lib/init/rc.boot | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/init/rc.boot b/lib/init/rc.boot index 1bb8351..dae2518 100755 --- a/lib/init/rc.boot +++ b/lib/init/rc.boot @@ -46,7 +46,14 @@ log "Starting device manager..."; { elif command -v mdev >/dev/null; then log "Starting mdev..." - printf /bin/mdev > /proc/sys/kernel/hotplug + # Try to set the hotplug script to mdev. + # This will silently fail if unavailable. + # + # The user should then run the mdev service + # to enable hotplugging. + printf /bin/mdev 2>/dev/null > \ + /proc/sys/kernel/hotplug + mdev -s # Create /dev/mapper nodes.