diff options
author | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-09-30 17:54:01 -0700 |
---|---|---|
committer | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-09-30 17:54:01 -0700 |
commit | ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd (patch) | |
tree | aca00beb2bffc5df4c8aa9395769d6d0af597da7 | |
parent | fa67a6d0831959bdba9943897659f72c1921e9b0 (diff) | |
download | PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.tar PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.tar.gz PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.tar.bz2 PortableVM-ba9cc52eff08c0c260d2752d3e5e9a8221ccb8fd.zip |
feat: improve the commit fail prompt
-rw-r--r-- | PortableVM.lua | 2 | ||||
-rw-r--r-- | VM.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/PortableVM.lua b/PortableVM.lua index 751fd93..e28a9b6 100644 --- a/PortableVM.lua +++ b/PortableVM.lua @@ -97,7 +97,7 @@ local function askForCommit() os.exit(0) else if mVM.commit(SNAP_PATH) ~= true then - io.stderr:write("Cannot commit to the disk.\n") + io.stderr:write("Cannot commit to the disk. Press any key to continue.\n") mInput.readLine() os.exit(4) else @@ -10,7 +10,7 @@ function VMUtils.boot(command) end function VMUtils.commit(snap) - return mUtils.exec("qemu-img commit -p " .. snap) + return mUtils.exec("qemu-imga commit -p " .. snap) end function VMUtils.isSnapExist(snap) |