summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-12 23:37:06 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-12 23:38:54 -0400
commitf46ece4a582120582c785389139c2066b7540bd4 (patch)
tree1c743024feb439bda4fcf4976bacd5d6a0424e02
parent2e9b82202efd18f8429b6aa1b3e6a9463881787e (diff)
osi-run: set the VM name
-rwxr-xr-xosi-run4
1 files changed, 3 insertions, 1 deletions
diff --git a/osi-run b/osi-run
index 0ef56aa..0481324 100755
--- a/osi-run
+++ b/osi-run
@@ -80,7 +80,9 @@ main() {
needs_sudo
install -Dm755 /dev/stdin "$arg_mountpoint/etc/osi-run"
umount "$arg_mountpoint"
- sudo -u "#${SUDO_UID}" -- "${arg_qemu[@]}" -drive media=disk,format=raw,if=virtio,file="$arg_image"
+ sudo -u "#${SUDO_UID}" -- "${arg_qemu[@]}" \
+ -name "osi-run $arg_image" \
+ -drive media=disk,format=raw,if=virtio,file="$arg_image"
mount "$arg_image" "$arg_mountpoint"
cat "$arg_mountpoint/var/log/osi-run.out"
return "$(cat "$arg_mountpoint/var/log/osi-run.status")"