mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Add UEFI Architecture Patterns
This commit is contained in:
		
							parent
							
								
									b27d27d532
								
							
						
					
					
						commit
						b91f1cc36b
					
				
					 1 changed files with 24 additions and 0 deletions
				
			
		|  | @ -166,3 +166,27 @@ def validate_macaddr(val): | ||||||
|     form = re.match("^([0-9a-fA-F]{1,2}:){5}[0-9a-fA-F]{1,2}$", val) |     form = re.match("^([0-9a-fA-F]{1,2}:){5}[0-9a-fA-F]{1,2}$", val) | ||||||
|     if form is None: |     if form is None: | ||||||
|         raise ValueError("MAC address must be of the format AA:BB:CC:DD:EE:FF, was '%s'" % val) |         raise ValueError("MAC address must be of the format AA:BB:CC:DD:EE:FF, was '%s'" % val) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | # Mapping of UEFI binary names to their associated architectures. We | ||||||
|  | # only use this info to do things automagically for the user, it shouldn't | ||||||
|  | # validate anything the user explicitly enters. | ||||||
|  | uefi_arch_patterns = { | ||||||
|  |     "i686": [ | ||||||
|  |         r".*ovmf-ia32.*",  # fedora, gerd's firmware repo | ||||||
|  |     ], | ||||||
|  |     "x86_64": [ | ||||||
|  |         r".*OVMF_CODE\.fd",  # RHEL | ||||||
|  |         r".*ovmf-x64/OVMF.*\.fd",  # gerd's firmware repo | ||||||
|  |         r".*ovmf-x86_64-.*",  # SUSE | ||||||
|  |         r".*ovmf.*", ".*OVMF.*",  # generic attempt at a catchall | ||||||
|  |     ], | ||||||
|  |     "aarch64": [ | ||||||
|  |         r".*AAVMF_CODE\.fd",  # RHEL | ||||||
|  |         r".*aarch64/QEMU_EFI.*",  # gerd's firmware repo | ||||||
|  |         r".*aarch64.*",  # generic attempt at a catchall | ||||||
|  |     ], | ||||||
|  |     "armv7l": [ | ||||||
|  |         r".*arm/QEMU_EFI.*",  # fedora, gerd's firmware repo | ||||||
|  |     ], | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue