7 Commits (4f6d505f7ef032b552c9a544f95e8586d954fe26)

Author SHA1 Message Date
Ivan Avdeev 0410193a20 fix qemu script to run a single $HOOKPATH file
A missing space typo prevented detecting presence and validity of a single file at `$HOOKPATH`.
2 years ago
basharkey a1715591ca switch shebang to use environment bash 2 years ago
jolan 947d90b334 adjust quoting and fix empty directory case
This fixes "/etc/libvirt/hooks/qemu: line 27: : command not found"
errors that have been reported due to extraneous quoting.  It also
fixes a case where an empty directory would trigger an attempt to
interpret a null string as a hook script.  Added some extra
validation for the single script case as well.
4 years ago
Sebastiaan Meijer 13b41ce4ef Fix an oopsie 4 years ago
Sebastiaan Meijer a2c83ac81d Rework hook helper script to hopefully be more reliable 4 years ago
Sebastiaan Meijer e969bc084f Max search depth should be 1
Signed-off-by: Sebastiaan Meijer <sebastiaan@passthroughpo.st>
7 years ago
Sebastiaan Meijer df93e80b05 Add a new hook handler for libvirt for easier per-VM hooks.
Signed-off-by: Sebastiaan Meijer <sebastiaan@passthroughpo.st>
7 years ago