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

Allow specifying minimum image size in auroraboot raw images #3155

Open
jimmykarily opened this issue Jan 29, 2025 · 0 comments
Open

Allow specifying minimum image size in auroraboot raw images #3155

jimmykarily opened this issue Jan 29, 2025 · 0 comments

Comments

@jimmykarily
Copy link
Contributor

jimmykarily commented Jan 29, 2025

Discussion started here: https://github.com/kairos-io/kairos/pull/3154/files#r1933473895

When we create a cloud image with Auroraboot, the resulting disk image file has a recovery partition size defined by the source image size. This means, a raw image created for a "core" Kairos source image, might not fit a standard image if the user resets to such an image using reset.system.uri.

Since this flow is our recommended flow (because we want to avoid uploading all our flavors and k3s versions), we need to make sure any of our images will fit in the recovery partition.

For this reason, we will implement a flag in auroraboot that will override the image size when set. So instead of using the source image size, the define value will be used to calculate the recovery partition size (and the state one upon booting but that should already happen I guess, needs checking).

@jimmykarily jimmykarily converted this from a draft issue Jan 29, 2025
jimmykarily added a commit that referenced this issue Jan 29, 2025
Proper fix will follow:

#3155

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
jimmykarily added a commit that referenced this issue Jan 30, 2025
Proper fix will follow:

#3155

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo 🖊
Development

No branches or pull requests

1 participant