configure hook

Boris Rybalkin ribalkin at gmail.com
Wed Nov 9 09:15:17 UTC 2016


One more question, should I expect a hook to run inside my snap package and
use relative shebang like this?

#!python/bin/python

Assuming I am packaging python with my snap.

Thank you very much for your replies!

On 9 Nov 2016 08:58, "Didier Roche" <didrocks at ubuntu.com> wrote:

> Le 09/11/2016 à 09:39, Boris Rybalkin a écrit :
>
> Sorry, I did not get that.
>
> I am using snapcraft, are you saying that just creating hooks/configure is
> not enaugh?
>
> It should be enough if you ensure it's in your final snap in
> meta/hooks/configure. (Look at your prime/ directory).
> Enwei was talking about more advanced snapcraft integration, where you
> point to a file which is then copied for you in meta/hooks.
>
> Looks like my hook is not executed:
> https://github.com/syncloud/platform/tree/master/snap
>
> Is it possible to debug the execution of snap install?
>
> I would like to see the state of the snap after it failed to start
> daemons. The only way to see the problem is to run journalctl and guess by
> startup errors.
>
> Yeah, hooks are hard to debug, I filed
>
>
> *https://bugs.launchpad.net/snappy/+bug/1640114
> <https://bugs.launchpad.net/snappy/+bug/1640114> yesterday about this.
> Didier *
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161109/bda3908d/attachment.html>


More information about the Snapcraft mailing list