Debian10 fails on final reboot

i see this in the curtin logs

Configuring target system for distro: debian osfamily: debian
start: cmd-install/stage-curthooks/builtin/cmd-curthooks/writing-apt-config: configuring apt configuring apt
Transferred {'grub2': 'grub2   grub2/update_nvram  boolean false', 'maas': 'cloud-init   cloud-init/datasources  multiselect MAAS\ncloud-init   cloud-init/maas-metadata-url  string http://192.168.50.10:5248/MAAS/metadata/\ncloud-init   cloud-init/maas-metadata-credentials  string oauth_consumer_key=dpvF8J6ncpH3mkuehd&oauth_token_key=3B3cdJWFdFk2L7S6Qw&oauth_token_secret=fb84HsCZPDHN39M9tUtuWNycQKbRDG4b\ncloud-init   cloud-init/local-cloud-config  string manage_etc_hosts: true\\nmanual_cache_clean: true\\nreporting:\\n  maas:\\n    consumer_key: dpvF8J6ncpH3mkuehd\\n    endpoint: http://192.168.50.10:5248/MAAS/metadata/status/qkak7f\\n    token_key: 3B3cdJWFdFk2L7S6Qw\\n    token_secret: fb84HsCZPDHN39M9tUtuWNycQKbRDG4b\\n    type: webhook\\n\n'} into new format: {'preserve_sources_list': False, 'proxy': 'http://192.168.50.10:8000/', 'sources_list': 'deb http://deb.debian.org/debian buster main\ndeb-src http://deb.debian.org/debian buster main\ndeb http://security.debian.org/debian-security buster/updates main\ndeb-src http://security.debian.org/debian-security buster/updates main\n', 'debconf_selections': {'grub2': 'grub2   grub2/update_nvram  boolean false', 'maas': 'cloud-init   cloud-init/datasources  multiselect MAAS\ncloud-init   cloud-init/maas-metadata-url  string http://192.168.50.10:5248/MAAS/metadata/\ncloud-init   cloud-init/maas-metadata-credentials  string oauth_consumer_key=dpvF8J6ncpH3mkuehd&oauth_token_key=3B3cdJWFdFk2L7S6Qw&oauth_token_secret=fb84HsCZPDHN39M9tUtuWNycQKbRDG4b\ncloud-init   cloud-init/local-cloud-config  string manage_etc_hosts: true\\nmanual_cache_clean: true\\nreporting:\\n  maas:\\n    consumer_key: dpvF8J6ncpH3mkuehd\\n    endpoint: http://192.168.50.10:5248/MAAS/metadata/status/qkak7f\\n    token_key: 3B3cdJWFdFk2L7S6Qw\\n    token_secret: fb84HsCZPDHN39M9tUtuWNycQKbRDG4b\\n    type: webhook\\n\n'}}
curthooks handling apt to target /tmp/tmp1ccj6b03/target with config {'preserve_sources_list': False, 'proxy': 'http://192.168.50.10:8000/', 'sources_list': 'deb http://deb.debian.org/debian buster main\ndeb-src http://deb.debian.org/debian buster main\ndeb http://security.debian.org/debian-security buster/updates main\ndeb-src http://security.debian.org/debian-security buster/updates main\n', 'debconf_selections': {'grub2': 'grub2   grub2/update_nvram  boolean false', 'maas': 'cloud-init   cloud-init/datasources  multiselect MAAS\ncloud-init   cloud-init/maas-metadata-url  string http://192.168.50.10:5248/MAAS/metadata/\ncloud-init   cloud-init/maas-metadata-credentials  string oauth_consumer_key=dpvF8J6ncpH3mkuehd&oauth_token_key=3B3cdJWFdFk2L7S6Qw&oauth_token_secret=fb84HsCZPDHN39M9tUtuWNycQKbRDG4b\ncloud-init   cloud-init/local-cloud-config  string manage_etc_hosts: true\\nmanual_cache_clean: true\\nreporting:\\n  maas:\\n    consumer_key: dpvF8J6ncpH3mkuehd\\n    endpoint: http://192.168.50.10:5248/MAAS/metadata/status/qkak7f\\n    token_key: 3B3cdJWFdFk2L7S6Qw\\n    token_secret: fb84HsCZPDHN39M9tUtuWNycQKbRDG4b\\n    type: webhook\\n\n'}}

so the datasource is available but doesnt seem to be written to the target. the network settings seem to be coppied fine

Writing network config to etc/cloud/cloud.cfg.d/50-curtin-networking.cfg: /tmp/tmp1ccj6b03/target/etc/cloud/cloud.cfg.d/50-curtin-networking.cfg

I don’t really think this is a bug with cloud-init and more likely an issue with curtin or MAAS itself. Do you know how i can get more debug logs?