From 60f97dfa7fcdde09109118c97d69b84caae7c389 Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Sun, 8 Apr 2018 21:25:05 -0400 Subject: [PATCH] make the virsh run after the udev script to fix a "failed to find host usb device" error --- usb-libvirt-hotplug.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usb-libvirt-hotplug.sh b/usb-libvirt-hotplug.sh index ddb315c..e2b6282 100755 --- a/usb-libvirt-hotplug.sh +++ b/usb-libvirt-hotplug.sh @@ -99,6 +99,7 @@ DEVNUM=$((10#$DEVNUM)) # update XML from stdin. # echo "Running virsh ${COMMAND} ${DOMAIN} for USB bus=${BUSNUM} device=${DEVNUM}:" >&2 +cat < @@ -106,3 +107,4 @@ virsh "${COMMAND}" "${DOMAIN}" /dev/stdin < END +ENDAT