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

Do not expand COS_PERSISTENT by default #740

Merged

Conversation

davidcassany
Copy link
Contributor

This commit drops the expansion cloud-init step for COS_PERSISTENT partition. The installation already uses all available size by default there is not need to attempt a resize on every boot.

In addition this commit also updates the persistent volumes configuration to be aligned with the latest elemental-toolkit changes. Now volumes are set as part of the kernel arguments at boot and not as part of the cloud-init setup. This prevents including filesystem label literals within the immutable OS.

Related to #732

Copy link
Contributor

@frelon frelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

This commit drops the expansion cloud-init step for COS_PERSISTENT
partition. The installation already uses all available size by default
there is not need to attempt a resize on every boot.

In addition this commit also updates the persistent volumes
configuration to be aligned with the latest elemental-toolkit
changes. Now volumes are set as part of the kernel arguments at boot
and not as part of the cloud-init setup. This prevents including
filesystem label literals within the immutable OS.

Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany davidcassany added the status/blocked Issue depend on another one label Mar 17, 2023
@davidcassany
Copy link
Contributor Author

davidcassany commented Mar 17, 2023

I blocked it as I'd like to merge it after verifying rancher/elemental-toolkit#1743 solves the issue. The patch here I believe it prevents the race condition to happen so we would not hit the corner case that the mentioned PR aims to fix.

@davidcassany davidcassany removed the status/blocked Issue depend on another one label Mar 21, 2023
@davidcassany davidcassany merged commit 6b70de5 into rancher:main Mar 21, 2023
@davidcassany davidcassany deleted the do_not_expand_disk_by_default branch March 21, 2023 13:15
@davidcassany davidcassany self-assigned this Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants