diff --git a/images/alt.yaml b/images/alt.yaml index d5e75c55..d7d1a64a 100644 --- a/images/alt.yaml +++ b/images/alt.yaml @@ -182,5 +182,17 @@ actions: variants: - cloud +# XXX: Prevent cloud-init from attempting to modify the hostname. Otherwise, cloud-init fails with +# an attribute error: "module 'cloudinit.util' has no attribute 'load_file'") in "update_hostname". +- trigger: post-packages + action: |- + #!/bin/sh + set -eux + + # Disable the update_hostname module in cloud-init. + sed -i '/update_hostname/d' /etc/cloud/cloud.cfg + variants: + - cloud + mappings: architecture_map: altlinux