<div dir="ltr">Can we use the configure hook to create the directory at installation?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 3:06 PM, Simon Fels <span dir="ltr"><<a href="mailto:simon.fels@canonical.com" target="_blank">simon.fels@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03.03.2017 01:06, Michi Henning wrote:<br>
><br>
>> On 3 Mar 2017, at 4:33 , knitzsche <<a href="mailto:kyle.nitzsche@canonical.com">kyle.nitzsche@canonical.com</a><br>
</span><span class="">>> <mailto:<a href="mailto:kyle.nitzsche@canonical.com">kyle.nitzsche@<wbr>canonical.com</a>>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I am trying to use the wifi-ap content sharing interface.<br>
>><br>
>> It is DENIED (see below) when I try to use a $SNAP directory.<br>
>><br>
>> It works when I instead use $SNAP_DATA directory for the content<br>
>> sharing. But, I have to create that directory at run time: I can't<br>
>> figure out so far how to create (from snapcraft.yaml) an empty dir in<br>
>> $SNAP_COMMON or $SNAP_DATA at install time. (Knowing this would solve<br>
>> my problem.)<br>
><br>
><br>
> We do this to create a directory:<br>
><br>
> install: |<br>
>       # Make sure we have a mount point for ubuntu-app-platform<br>
>       mkdir -p $SNAPCRAFT_PART_INSTALL/<wbr>ubuntu-app-platform<br>
<br>
</span>That doesn't help much here as we're bind-mounting read/write data and<br>
that seems to be not possible to go into somewhere below $SNAP.<br>
<br>
I fear the only answer to this problem are interface hooks which would<br>
allow us to create the relevant directory before the bind-mount happens<br>
inside $SNAP_DATA.<br>
<br>
regards,<br>
Simon<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>