Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion mkosi/distributions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,13 @@ def detect_distribution() -> tuple[Optional[Distribution], Optional[str]]:
version_id = os_release.get("VERSION_ID", None)
version_codename = os_release.get("VERSION_CODENAME", None)

quirks = {
"azurelinux": Distribution.azure,
}

d: Optional[Distribution] = None
for the_id in [dist_id, *dist_id_like]:
d = Distribution.__members__.get(the_id, None)
d = Distribution.__members__.get(the_id, quirks.get(the_id))
if d is not None:
break

Expand Down
1 change: 0 additions & 1 deletion mkosi/resources/mkosi-tools/mkosi.conf.d/10-azure.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Packages=
distribution-gpg-keys
dnf5
dnf5-plugins
erofs-utils
qemu-system-aarch64-core
qemu-system-s390x-core
systemd-ukify