summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-09 18:45:08 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-09 18:45:08 -0400
commit6e804bd78217434ebc444ed6f094f95ba90663d0 (patch)
tree8f2399a1f7fee2cf1244f8cd7828be537e86fd6c
parent21d1b117febdcb2510cf1348dbf2398ac713ffe4 (diff)
tidy
-rwxr-xr-xosi-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/osi-run b/osi-run
index c9f5413..8570adf 100755
--- a/osi-run
+++ b/osi-run
@@ -13,6 +13,6 @@
trap "rmdir -- ${mountpoint@Q}" EXIT
sudo unshare --mount sh -c "mount --make-rslave / && mount ${image@Q} ${mountpoint@Q} && install -Dm755 /dev/stdin ${mountpoint@Q}/etc/osi-run"
- "${qemu[@]}" -drive media=disk,format=raw,if=virtio,file="$1"
+ "${qemu[@]}" -drive media=disk,format=raw,if=virtio,file="$image"
sudo unshare --mount sh -c "mount --make-rslave / && mount ${image@Q} ${mountpoint@Q} && cat ${mountpoint@Q}/var/log/osi-run.out; exit \$(cat ${mountpoint@Q}/var/log/osi-run.status)"
}