If the cloud-init used in the build does not ship the Z99-cloud-local- tests.sh, the hook script exits non-zero and fails the build.
https://launchpadlibrarian.net/301226697/buildlog_snap_ubuntu_xenial_amd64_core_BUILDING.txt.gz Looking at the failed hook: (foudres) hooks % cat 19-remove-cloud-init-locale-test.chroot #!/bin/sh set -e # bug #1637611 echo "removing /etc/profile.d/Z99-cloud-locale-test.sh" [ -e /etc/profile.d/Z99-cloud-locale-test.sh ] && rm /etc/profile.d/Z99-cloud-locale-test.sh (foudres) hooks % sh -x ./19-remove-cloud-init-locale-test.chroot + set -e + echo removing /etc/profile.d/Z99-cloud-locale-test.sh removing /etc/profile.d/Z99-cloud-locale-test.sh + [ -e /etc/profile.d/Z99-cloud-locale-test.sh ] (foudres) hooks % echo $? 1 Would it be reasonable to just add an 'exit 0' in the case that the file is not-present so the build handles cloud-init with and without the profile test? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1637611 Title: snappy images should not ship /etc/profile.d/Z99-cloud-locale-test.sh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1637611/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
