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.
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 themotd-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.