systemd and bin-path exported variables are not in sync
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
High
|
Michael Terry | ||
15.04 |
Fix Released
|
High
|
Michael Terry |
Bug Description
Some variables are in systemd and some are in bin-path. These shoudl be in sync:
$ grep Environment /etc/systemd/
SNAPP_APP_
SNAPP_APP_
SNAPP_APP_
SNAP_APP=
SNAP_APP_
SNAP_APP_
SNAP_APP_
SNAP_APP_
SNAP_FULLNAME=
SNAP_NAME=docker
SNAP_ORIGIN=
$ hello-world.env |grep SNAP|sort
SNAPPY_
SNAPP_APP_
SNAPP_APP_
SNAPP_APP_
SNAPP_APP_
SNAPP_OLD_
SNAP_APP_
SNAP_APP_
SNAP_APP_
SNAP_APP_
SNAP_FULLNAME=
SNAP_NAME=
SNAP_OLD_
SNAP_ORIGIN=
I noticed this because SNAPPY_APP_ARCH would be very useful for services but it isn't exported (this should probably be SNAP_APP_ARCH).
Related branches
- Michael Vogt (community): Approve
-
Diff: 429 lines (+176/-71)6 files modifiedhelpers/helpers.go (+71/-0)
snappy/click.go (+46/-34)
snappy/click_test.go (+24/-24)
snappy/snapp.go (+15/-8)
systemd/systemd.go (+14/-1)
systemd/systemd_test.go (+6/-4)
- John Lenton (community): Approve
-
Diff: 429 lines (+176/-71)6 files modifiedhelpers/helpers.go (+71/-0)
snappy/click.go (+46/-34)
snappy/click_test.go (+24/-24)
snappy/snapp.go (+15/-8)
systemd/systemd.go (+14/-1)
systemd/systemd_test.go (+6/-4)
summary: |
- systemd service does not export all SNAP_ variables + systemd and bin-path exported variables are not in sync |
Changed in snappy-ubuntu: | |
status: | New → Triaged |
importance: | Undecided → High |
affects: | snappy-ubuntu → snappy |
Changed in snappy: | |
assignee: | nobody → Michael Terry (mterry) |
Changed in snappy: | |
status: | Triaged → In Progress |
no longer affects: | ubuntu-snappy (Ubuntu) |
no longer affects: | ubuntu-snappy (Ubuntu Vivid) |
Changed in snappy: | |
status: | In Progress → Fix Committed |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
the hooks probably also need to have a unified environ.
mmm... triplication.
On 29 April 2015 at 09:33, Michael Vogt <email address hidden> wrote: /bugs.launchpad .net/bugs/ 1449625 /bugs.launchpad .net/snappy- ubuntu/ +bug/1449625/ +subscriptions
> ** Changed in: snappy-ubuntu
> Status: New => Triaged
>
> ** Changed in: snappy-ubuntu
> Importance: Undecided => High
>
> --
> You received this bug notification because you are a member of Snappy
> Developers, which is subscribed to snappy-ubuntu.
> https:/
>
> Title:
> systemd and bin-path exported variables are not in sync
>
> To manage notifications about this bug go to:
> https:/