Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

specify image as parameter

  • Loading branch information...
commit db3565ba61c0bbe976c1e158c07c99ac97368270 1 parent 16cd091
@dpavlin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  qemu-mount.sh
View
3  qemu-mount.sh
@@ -1,6 +1,7 @@
#!/bin/sh
image=emulator/android-x86-1.6-r2.boot.qcow2
+test ! -z "$1" && image=$1
if mount | grep /tmp/qemu ; then
echo "umount"
@@ -13,7 +14,7 @@ fi
echo "mount $image"
-qemu-nbd emulator/android-x86-1.6-r2.boot.qcow2 &
+qemu-nbd $image &
sudo nbd-client localhost 1024 /dev/nbd0
mkdir /tmp/qemu
echo "wait for partitions"
Please sign in to comment.
Something went wrong with that request. Please try again.