canonical / core18

The core18 base snap
14 stars 26 forks source link

hooks: adapt to motd-news-config not being included in image any more #168

Closed jhenstridge closed 4 years ago

jhenstridge commented 4 years ago

This is the same fix as https://github.com/snapcore/core20/pull/85, as it appears to affect core18 too. The new base-files update associated with bug #1888575 splits out the configuration file for the motd-news feature into a separate package. That package does not end up in the image, causing the build to break.

As the hooks attempt to disable motd-news and the feature is disabled when the config file is absent, I've removed the code that attempts to patch the config file and added a test to ensure the config file is absent.