Skip to contentSkip to conversation

docs: admin-guide: update description for kernel.hotplug sysctl

PATCH Applied Rasmus Villemoes 2 participants 3 messages Apr 20, 2021 – May 13, 2021 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: admin-guide: update description for kernel.hotplug sysctl

It's been a few releases since this defaulted to /sbin/hotplug. Update the text, and include pointers to the two CONFIG_UEVENT_HELPER{,_PATH} config knobs whose help text could provide more info, but also hint that the user probably doesn't need to care at all.

Fixes 7934779a69f1 ("Driver-Core: disable /sbin/hotplug by default")
---
 Documentation/admin-guide/sysctl/kernel.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/admin-guide/sysctl/kernel.rst +6 -1
index 1d56a6b73a4e..c24f57f2c782 100644
@@ -333,7 +333,12 @@ hotplug
 =======
 
 Path for the hotplug policy agent.
-Default value is "``/sbin/hotplug``".
+Default value is ``CONFIG_UEVENT_HELPER_PATH``, which in turn defaults
+to the empty string.
+
+This file only exists when ``CONFIG_UEVENT_HELPER`` is enabled. Most
+modern systems rely exclusively on the netlink-based uevent source and
+don't need this.
 
 
 hung_task_all_cpu_backtrace
Signature · 1 line
2.29.2
#1 lore raw
Quoted 7 lines · Rasmus Villemoes

It's been a few releases since this defaulted to /sbin/hotplug. Update the text, and include pointers to the two CONFIG_UEVENT_HELPER{,_PATH} config knobs whose help text could provide more info, but also hint that the user probably doesn't need to care at all.

Fixes 7934779a69f1 ("Driver-Core: disable /sbin/hotplug by default")

Ping.

Quoted 23 lines
---
 Documentation/admin-guide/sysctl/kernel.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/admin-guide/sysctl/kernel.rst +6 -1
index 1d56a6b73a4e..c24f57f2c782 100644
@@ -333,7 +333,12 @@ hotplug
 =======
 
 Path for the hotplug policy agent.
-Default value is "``/sbin/hotplug``".
+Default value is ``CONFIG_UEVENT_HELPER_PATH``, which in turn defaults
+to the empty string.
+
+This file only exists when ``CONFIG_UEVENT_HELPER`` is enabled. Most
+modern systems rely exclusively on the netlink-based uevent source and
+don't need this.
 
 
 hung_task_all_cpu_backtrace
maintainer Applied
#2 lore raw
In reply to Rasmus Villemoes
Quoted 16 lines · Rasmus Villemoes

It's been a few releases since this defaulted to /sbin/hotplug. Update the text, and include pointers to the two CONFIG_UEVENT_HELPER{,_PATH} config knobs whose help text could provide more info, but also hint that the user probably doesn't need to care at all.

Fixes 7934779a69f1 ("Driver-Core: disable /sbin/hotplug by default")
---
 Documentation/admin-guide/sysctl/kernel.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index 1d56a6b73a4e..c24f57f2c782 100644

Documentation/admin-guide/sysctl/kernel.rst hotplug · line 341

Quoted 10 lines
Documentation/admin-guide/sysctl/kernel.rst +6 -1
@@ -333,7 +333,12 @@ hotplug
 =======
 
 Path for the hotplug policy agent.
-Default value is "``/sbin/hotplug``".
+Default value is ``CONFIG_UEVENT_HELPER_PATH``, which in turn defaults
+to the empty string.
+
+This file only exists when ``CONFIG_UEVENT_HELPER`` is enabled. Most
+modern systems rely exclusively on the netlink-based uevent source and
+don't need this.

Applied, thanks.

jon