cryptenroll/repart/creds: no longer default to binding against literal PCR 7 (#36200)
[systemd.io.git] / man / check-os-release-simple.py
blobce73c77b14a36b46b6c9567d676ae4788ae87729
1 #!/usr/bin/python
2 # SPDX-License-Identifier: MIT-0
4 import platform
5 os_release = platform.freedesktop_os_release()
7 pretty_name = os_release.get('PRETTY_NAME', 'Linux')
8 print(f'Running on {pretty_name!r}')
10 if 'fedora' in [os_release.get('ID', 'linux'),
11 *os_release.get('ID_LIKE', '').split()]:
12 print('Looks like Fedora!')