unable to add unset environment variables via <checkbox-snap>.configure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Core |
Fix Released
|
Medium
|
Jonathan Cave | ||
Checkbox Support Library |
Fix Released
|
Medium
|
Jonathan Cave |
Bug Description
[Steps]
On any system with checkbox-snappy installed:
1. Check what environment variables are currently set:
$ sudo checkbox-
2. Try setting a not-yet-set variable, e.g. "TEST_SNAP":
$ sudo checkbox-
3. Check if the changes in step 2 is saved:
$ sudo checkbox-
4. Launch the actual configuration file to see if the changes made in step 2 is saved:
$ cat /writable/
[Expected]
Changes in step 2 are reflected in both step 3 and 4
[Actual]
Changes in step 2 are not reflected in either step 3 or 4
[Workaround]
The only way to workaround/solve this problem is to write the new settings directly into the checkbox.conf configuration file
Related branches
- Maciej Kisielewski (community): Approve
- Devices Certification Bot: Needs Fixing
-
Diff: 283 lines (+91/-86)2 files modifiedcheckbox_support/snap_utils/config.py (+24/-19)
checkbox_support/snap_utils/tests/test_config.py (+67/-67)
Changed in checkbox-ng: | |
importance: | Undecided → Medium |
assignee: | nobody → Jonathan Cave (jocave) |
status: | New → In Progress |
Changed in checkbox-ng: | |
status: | In Progress → Fix Committed |
milestone: | none → 1.14.0 |
Changed in checkbox-ng: | |
milestone: | 1.14.0 → none |
affects: | checkbox-ng → checkbox-support |
Changed in checkbox-core-snap: | |
milestone: | none → 22 |
Changed in checkbox-support: | |
milestone: | none → 0.51.0 |
Changed in checkbox-core-snap: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Jonathan Cave (jocave) |
Changed in checkbox-support: | |
status: | Fix Committed → Fix Released |
Changed in checkbox-core-snap: | |
status: | Fix Committed → Fix Released |
Two possible solutions I'm seeing:
1. Add the feature of allowing checkbox- snappy. configure to add unset variables
2. List all variables that could be used inside checkbox.conf from the very beginning.