diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-12 23:37:06 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-12 23:38:54 -0400 |
commit | f46ece4a582120582c785389139c2066b7540bd4 (patch) | |
tree | 1c743024feb439bda4fcf4976bacd5d6a0424e02 | |
parent | 2e9b82202efd18f8429b6aa1b3e6a9463881787e (diff) |
osi-run: set the VM name
-rwxr-xr-x | osi-run | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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")" |