Skip to content

install: Don't retarget /tmp or /var/tmp if they're not overlayfs - #225

Merged
vrothberg merged 1 commit into
bootc-dev:mainfrom
cgwalters:idempotent-tmp-mounts
Dec 15, 2023
Merged

vrothberg merged 1 commit into
bootc-dev:mainfrom
cgwalters:idempotent-tmp-mounts

Conversation

@cgwalters

Copy link
Copy Markdown
Member

It may be that we're involved via a container flow where e.g. /tmp is already "properly" set up as a tmpfs.

In that case we don't need to do a dance in retargeting.

xref https://github.com/osbuild/bootc-image-builder/issues/18#issuecomment-1855886913

It may be that we're involved via a container flow where
e.g. `/tmp` is already "properly" set up as a tmpfs.

In that case we don't need to do a dance in retargeting.

xref https://github.com/osbuild/bootc-image-builder/issues/18#issuecomment-1855886913

Signed-off-by: Colin Walters <[email protected]>

@ondrejbudai ondrejbudai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've just tested this commit in an osbuild environment and it works fine:

TRACE Already have /tmp with f_type=16914836
TRACE Already have /var/tmp with f_type=2435016766

Thanks!

@vrothberg vrothberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vrothberg
vrothberg merged commit 2582ef2 into bootc-dev:main Dec 15, 2023
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.

3 participants