snapcraft.yaml: Fix config installation #239
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
u-i expects mkfs configs in /etc/ubuntu-image/mkfs/$SERIES/mke2fs.conf, this makes sure they get installed to the correct directory
The lookup path is constructed in https://github.com/canonical/ubuntu-image/blob/main/internal/statemachine/helper.go#L296 as
strings.Join([]string{osGetenv("SNAP"), MKE2FS_BASE_PATH, series, MKE2FS_CONFIG_FILE}, "/")
which expands to/etc/ubuntu-image/mkfs/$series/mke2fs.conf
.Previously the configs were installed in
/etc/ubuntu-image/confs/$series/mke2fs.conf
instead and consequently ignored.