Repository settings change after first boot

The mirror configuration differs from what you built because cloud-init regenerated the repository settings on first boot.

Condition

The mirror configuration differs from what you built.

Cause

cloud-init regenerated the repository settings on first boot.

Remedy

Add preserve_sources_list: true, or give cloud-init your mirror URIs.