mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
script's lock before doing the cleanup, to avoid a race that causes the message "xenstore-list: could not list path backend/vbd/40" in /var/log/hotplug.log, with a subsequent refusal to create the domain, after a domain reboot. Signed-off-by: Ewan Mellor <ewan@xensource.com>
28 lines
358 B
Bash
Executable File
28 lines
358 B
Bash
Executable File
#! /bin/sh
|
|
|
|
PATH=/etc/xen/scripts:$PATH
|
|
|
|
case "$XENBUS_TYPE" in
|
|
vbd)
|
|
/etc/xen/scripts/block "$ACTION"
|
|
;;
|
|
vtpm)
|
|
/etc/xen/scripts/vtpm "$ACTION"
|
|
;;
|
|
vif)
|
|
[ -n "$script" ] && $script "$ACTION"
|
|
;;
|
|
esac
|
|
|
|
case "$ACTION" in
|
|
add)
|
|
;;
|
|
remove)
|
|
/etc/xen/scripts/xen-hotplug-cleanup
|
|
;;
|
|
online)
|
|
;;
|
|
offline)
|
|
;;
|
|
esac
|