@classmethod
def _cookie_linux_common(cls, os_release, arch):
    """
        Compute a cookie for a common linux that adheres to os-release(5)

        :param os_release:
            The data structure returned by :func:`get_os_release()`
        :param arch:
            The name of the architecture
        :returns:
            A connection cookie (see below)

        Typical values returned by this method are:
         - "local://localhost/?os=linux&id=debian&version_id=7&arch=amd64"
         - "local://localhost/?os=linux&id=ubuntu&version_id=14.04&arch=amd64"
         - "local://localhost/?os=linux&id=ubunty&version_id=14.09&arch=amd64"
         - "local://localhost/os=linux&id=fedora&version_id=20&arch=x86_64"
        """
    return 'local://localhost/?os={}&id={}&version_id={}&arch={}'.format(
        'linux', os_release.get('ID', 'Linux'), os_release.get('VERSION_ID',
        ''), arch)
