stage vai procurar por parts/$partname/install/etc/foo.conf . Se você quiser mover foo.conf de algum outro diretório e tê-lo em $SNAP/etc/foo.conf , você precisará usar organize . organize criará os diretórios necessários.
parts:
foo-config:
plugin: dump
source: .
stage:
- etc/foo.conf
organize:
<path>/foo: etc/foo.conf