From ae44869499f96ca10c9975027cfbbd96f82640c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 20 Jun 2016 22:02:55 +0200 Subject: [PATCH] qvm-start: improve error message about missing qubes-windows-tools.iso Fixes QubesOS/qubes-issues#1977 --- qvm-tools/qvm-start | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qvm-tools/qvm-start b/qvm-tools/qvm-start index 002c272e..eeabe68e 100755 --- a/qvm-tools/qvm-start +++ b/qvm-tools/qvm-start @@ -86,7 +86,12 @@ def main(): exit(1) if options.install_windows_tools: - options.drive = 'cdrom:dom0:/usr/lib/qubes/qubes-windows-tools.iso' + windows_tools_path = '/usr/lib/qubes/qubes-windows-tools.iso' + if not os.path.exists(windows_tools_path): + print >> sys.stderr, "You need to install 'qubes-windows-tools' " \ + "package in dom0 first" + exit(1) + options.drive = 'cdrom:dom0:{}'.format(windows_tools_path) if options.drive_hd: options.drive = 'hd:' + options.drive_hd