summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hook-hotplug6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/hook-hotplug b/tools/hook-hotplug
index ced268b3..35bd3da2 100755
--- a/tools/hook-hotplug
+++ b/tools/hook-hotplug
@@ -8,11 +8,7 @@ is_finished() {
[ -e /run/cloud-init/result.json ]
}
-hotplug_enabled() {
- [ "$(cloud-init devel hotplug-hook -s "${SUBSYSTEM}" query)" == "enabled" ]
-}
-
-if is_finished && hotplug_enabled; then
+if is_finished; then
# open cloud-init's hotplug-hook fifo rw
exec 3<>/run/cloud-init/hook-hotplug-cmd
env_params=(