live-build/hooks: add chroot hook to rm cloud-init config file we don't want#115
Merged
mvo5 merged 1 commit intocanonical:masterfrom Aug 6, 2020
Conversation
…'t want 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. Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
pedronis
approved these changes
Jul 28, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This configuration file has the following contents:
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 the UC16 back-port of canonical/core20#78
See canonical/core18#166 for the UC18 version