-
Committer:
Ryan Harper
-
Author(s):
Scott Moser
-
Date:
2017-12-08 17:54:51 UTC
-
mfrom:
(548.1.3 trunk.snap-curtin-helpers)
-
Revision ID:
ryan.harper@canonical.com-20171208175451-viw6eoztqlcwbmbw
pack: fix packing when curtin is installed inside a snap.
When curtin is installed as part of a MAAS snap, then it would fail
to find its helpers directory. That is because instead of helpers
living in usr/lib/curtin/helpers they will be in
/snap/maas/<version>/usr/lib/curtin/helpers
But helpfully, SNAP will be set in the environment to point to
/snap/maas/<version>/
The fix is to adjust pack to trust the environment variable
and pack up the installed files based on that prefix.