qvm-start: improve error message about missing qubes-windows-tools.iso
Fixes QubesOS/qubes-issues#1977
This commit is contained in:
		
							parent
							
								
									34fc3f3399
								
							
						
					
					
						commit
						ae44869499
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki