-
Notifications
You must be signed in to change notification settings - Fork 94
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
✨ Custom partitioning #558
Comments
This is the same problem describe here I think: #391 At least, the same solution could apply. |
Duplicate? #209 |
@jimmykarily I don't think this is a duplicate but about making custom partitioning work also at upper level, i.e. not only |
We now have the mechanism, but we need to properly expose it to the cloud-config to the user. See: #209 (comment) Ideally we should be generating the cloud-config as #209 (comment) within specifying custom layouts in the |
Now kairos-agent exposes the full config via cloud-config, which means that potentially we should be able to set the partitions via the install key in the cloud-config, like elemental was able to do:
Im gonna test if this works, because if so, it just needs documentation |
indeed, that works out of the box. So with the following cloud-config:
You get the following disk structure:
Which shows:
So this works out of the box with nothing to do on our side other than documentation, nice! Things to note:
Several improvements that we can consider for this feature:
The last 2 items would work very well together, being able to set up custom mounts in a different disk directly. |
I like the last 2 suggestions. This one I don't understand though: |
No, I mean, even if its set on the config file by the user, we override those with the default values as they cannot be configured that way. Like FS maybe ok with a validator, but the labels need to be fixed otherwise the whole system doesnt work. currently you can override it and set the label to whatever you want, but good luck getting immucore to know which partition is the state one to be able to boot lol
Values are set in the ElementalPartitions as defaults. So we know that the Partitions.Persistent should have the default COS_PERSISTENT label. Like its a very well defined struct with named structs on it to identify exactly what we need:
|
@jimmykarily this is what I mean with that, even if the user sets those values on the config file, we override them with the default ones as those are neede for the system to work as expected: kairos-io/kairos-agent#108 |
gotcha, thanks! |
Is your feature request related to a problem? Please describe.
Currently custom partitioning is allowed by formatting the device from cloud config, and call the installer with --no-format in the
options
Describe the solution you'd like
I'd like the configuration to be streamlined in the top-level YAML, e.g.:
Describe alternatives you've considered
Keep things as they are
Additional context
The text was updated successfully, but these errors were encountered: