-
Notifications
You must be signed in to change notification settings - Fork 59
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
FR-2622 customize /etc/fstab #75
Conversation
Codecov Report
@@ Coverage Diff @@
## feature/classic-image-redesign #75 +/- ##
================================================================
Coverage 100.00% 100.00%
================================================================
Files 9 9
Lines 1526 1555 +29
================================================================
+ Hits 1526 1555 +29
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good! Small inline formatting suggestion, but besides that it's all good. I'm thinking a bit about the image-definition format a bit, but I think this all 'fits' so far.
One thing to think about: should we maybe provide some fstab default if no fstab is given? Is there a common fstab we can figure out from the gadget yaml and use that as a default? |
Co-authored-by: Łukasz Zemczak <lukasz.zemczak@ubuntu.com>
We have some basic logic in It is very non-trivial to add a default for a struct like this. It is currently a pointer value and is therefore not memory safe to add it as a default in the same way we are assigning default values for strings, booleans, etc. |
I think this is more than enough, thanks for the reminder! Let's merge. |
This PR adds a new fstab section to the customization section of the image definition, and populates the contents of /etc/fstab in the chroot based on the image definition.