From 8d4e23097869548c11caa97e86c9faadb5dfacf2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 25 May 2012 09:16:54 +0000 Subject: [PATCH] hotplugging: Check if the device has vanished in the meantime. However, sometimes the rename script gets called and shortly after that the device vanishes. --- functions.device | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.device b/functions.device index 238cb06a..09ba33ed 100644 --- a/functions.device +++ b/functions.device @@ -560,7 +560,9 @@ function device_hotplug() { shift assert isset device - assert device_exists ${device} + + # Just check if the device has already vanished. + device_exists ${device} || return ${EXIT_ERROR} if ! device_is_free ${device}; then log ERROR "The device '${device}' is in use." -- 2.47.3