canonical / core18

The core18 base snap
14 stars 26 forks source link

hooks/900-cleanup-etc-var.chroot: rm cloud-init config file which we don't want #166

Closed anonymouse64 closed 4 years ago

anonymouse64 commented 4 years ago

This configuration file has the following contents:

# to update this file, run dpkg-reconfigure cloud-init
datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Bigstep, Scaleway, AliYun, Ec2, CloudStack, Hetzner, IBMCloud, Oracle, Exoscale, RbxCloud, None ]

On Ubuntu Core, one cannot run dpkg-reconfigure for one, so the file can never be modified in practice, and additionally we do not want to allow all possible datasources under the sun without understanding their use cases in Ubuntu Core.

Note that already on Ubuntu Core, snapd as of 2.45.2 will write a configuration file zzzz_snapd.cfg taking priority over this file to restrict the set of datasources to a safe one, so we do not strictly need to delete this file, but it will be simpler if we don't have this file.

This is https://github.com/snapcore/core20/pull/78, but for UC18. See https://github.com/snapcore/core/pull/115 for UC16