Skip to content

Manage firecracker pilot with systemd-tmpfiles for SUSE#75

Merged
schaefi merged 1 commit intomainfrom
firecracker_to_usr_not_var
Apr 15, 2026
Merged

Manage firecracker pilot with systemd-tmpfiles for SUSE#75
schaefi merged 1 commit intomainfrom
firecracker_to_usr_not_var

Conversation

@schaefi
Copy link
Copy Markdown
Contributor

@schaefi schaefi commented Apr 9, 2026

Store firecracker images and the storage blob to
/usr/share/firecracker instead of /var/lib/firecracker. This serves the needs for SUSE's immutable mode and is also more consistent with other flake files e.g /usr/share/flakes. This Fixes jira#1054

@schaefi schaefi requested a review from rjschwei April 9, 2026 09:16
@schaefi schaefi self-assigned this Apr 9, 2026
Copy link
Copy Markdown
Collaborator

@rjschwei rjschwei left a comment

Choose a reason for hiding this comment

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

Code looks good. It would be nice to have a %post that moves any existing images from the old to the new location on package update.

@schaefi schaefi force-pushed the firecracker_to_usr_not_var branch from 3cf17e6 to 87ee356 Compare April 13, 2026 11:02
@schaefi
Copy link
Copy Markdown
Contributor Author

schaefi commented Apr 13, 2026

Code looks good. It would be nice to have a %post that moves any existing images from the old to the new location on package update.

@rjschwei Thanks, I added a %post. Can you please have a very close look to the %post coding :) I tend to make stupid mistakes with spec file scrips and I very much appreciate if you can double check it.

Thanks

@schaefi schaefi requested a review from rjschwei April 13, 2026 11:19
Comment thread package/flake-pilot.spec Outdated
@schaefi schaefi force-pushed the firecracker_to_usr_not_var branch from 8d158b9 to 267f2aa Compare April 14, 2026 16:20
@schaefi schaefi force-pushed the firecracker_to_usr_not_var branch from 267f2aa to dff2bc1 Compare April 15, 2026 12:13
@schaefi schaefi changed the title Manage firecracker images in usr not var Manage firecracker pilot with systemd-tmpfiles for SUSE Apr 15, 2026
@schaefi schaefi requested a review from rjschwei April 15, 2026 12:17
On SUSE new package restrictions where added to support the
concept of the so called immutable mode. The new guideline
says "Any files in the RPM spec %files section that are not
in /usr or /etc is likely to break in Immutable Mode". For
the flake-pilot packaging this applies to the flake-pilot-firecracker
sub package. This commit implements the suggested solution based
on systemd-tmpfiles and only applies for SUSE.
This Fixes jira#PCT-1054
@schaefi schaefi force-pushed the firecracker_to_usr_not_var branch from dff2bc1 to c9f2116 Compare April 15, 2026 13:48
@schaefi schaefi merged commit b9d2b6e into main Apr 15, 2026
7 checks passed
@schaefi schaefi deleted the firecracker_to_usr_not_var branch April 15, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants