qvm-start: improve error message about missing qubes-windows-tools.iso

Fixes QubesOS/qubes-issues#1977
This commit is contained in:
Marek Marczykowski-Górecki 2016-06-20 22:02:55 +02:00
parent 34fc3f3399
commit ae44869499
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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