-
Notifications
You must be signed in to change notification settings - Fork 41
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
Need help with configuring mount attribute for /var #1678
Comments
Please see config.yaml.example in |
@kkaempf I tried doing that.
When I save the changes from the UI, it removes the mount section altogether. Looks like the MachineRegistration wont accept everything in https://github.com/rancher/elemental-toolkit/blob/main/config.yaml.example. Even the docs are little confusing around this. Also, @kkaempf @davidcassany Appreciate any help around this. |
Which version of Elemental, esp. |
Yes using |
Sorry, this doesn't answer which version you're running. |
Sorry, my bad.. Elemental Version: 3.0 elemental-operator:1.6. |
Hello! The A workaround would be to use a cloud-config section to write the configuration file to |
To add on top of what @frelon said, this should be handled as runtime configuration from the elemental-operator POV. I'd suggest to handle the mount configuration from the machine registration cloud-config, there are several ways but probably this is the most straight forward. @CharudathGopal regarding the new configuration it is unclear to me if you are aiming to set Depending what are you exactly trying to achieve the configuration of the mount operation would be different. The mount command can be configured from yaml and from and environment variables file. For v2.1.x images it uses an enviroment variables file ( To just change the mount options of the Elemental persistent partition this could be achieved in machine registration by: spec:
config:
cloud-config:
stages:
rootfs:
- name: "Change mount options for persistent partition"
files:
- path: "/run/elemental/config.d/mount_options.yaml"
content: |
mount:
persistent:
volume:
options: ['defaults', 'index=on', 'nfs_export=on'] Note I am using the |
What steps did you take and what happened:
index=on,nfs_export=on
mount attributes, also want this change to be persisted in /etc/fstabHow can I achieve this ?
What did you expect to happen:
Anything else you would like to add:
Environment:
cat /etc/os-release
):kubectl version
): 1.31.4The text was updated successfully, but these errors were encountered: