(self, arch, machine)
Search the loader paths for one that matches the passed arch
Search the loader paths for one that matches the passed arch
Search the loader paths for one that matches the passed arch
def find_uefi_path_for_arch(self, arch, machine):
        """
        Search the loader paths for one that matches the passed arch
        """
        if not self.arch_can_uefi(arch):
            return

        loaders = self.get_os_loaders(arch, machine)
        patterns = util.UEFI_ARCH_PATTERNS.get(arch)
        for pattern in patterns:
            for path in loaders:
                if re.match(pattern, path):
                    return path
def find_uefi_path_for_arch ( self , arch , machine ) : if not self . arch_can_uefi ( arch ) : return loaders = self . get_os_loaders ( arch , machine ) patterns = util . UEFI_ARCH_PATTERNS . get ( arch ) for pattern in patterns : for path in loaders : if re . match ( pattern , path ) : return path