Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapcraft.yaml: Fix config installation #239

Merged
merged 4 commits into from
Aug 6, 2024
Merged

snapcraft.yaml: Fix config installation #239

merged 4 commits into from
Aug 6, 2024

Conversation

tobhe
Copy link
Member

@tobhe tobhe commented Aug 5, 2024

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.

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.12%. Comparing base (b197109) to head (727089f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #239      +/-   ##
==========================================
+ Coverage   84.63%   94.12%   +9.48%     
==========================================
  Files          18       18              
  Lines        3404     3404              
==========================================
+ Hits         2881     3204     +323     
+ Misses        443      127     -316     
+ Partials       80       73       -7     
Flag Coverage Δ
unittests 94.12% <ø> (+9.48%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tobhe
Copy link
Member Author

tobhe commented Aug 6, 2024

Test looks good to me

tobhe and others added 4 commits August 6, 2024 14:35
u-i expects mkfs configs in /etc/ubuntu-image/mkfs/$SERIES/mke2fs.conf,
this makes sure they get installed to the correct directory
Make sure we detect any future error in the mkfs conf path we ship in the snap.

Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
@upils upils merged commit a0c0be8 into canonical:main Aug 6, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants