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

prepare-root: Fix composefs + ostree admin unlock --hotfix compat #3129

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

cgwalters
Copy link
Member

There's a test case for ostree admin unlock --hotfix that runs in FCOS, not here; it breaks when enabling composefs.

The reason is because the composefs is mounted readonly, and we tried to remount it writable. Instead of trying to remount the rootfs writable at this point forcibly, honor the real sysroot readonly state flag from the underlying FS before we mounted the composefs.

Note that in FCOS derivatives we always have the root mounted writable via rw on the kernel cmdline and this is the default general expectation now with ostree usage.

There's a test case for `ostree admin unlock --hotfix` that
runs in FCOS, not here; it breaks when enabling composefs.

The reason is because the composefs is mounted readonly, and
we tried to remount it writable.  Instead of trying to remount
the rootfs writable at this point forcibly, honor the
*real* sysroot readonly state flag from the underlying FS before
we mounted the composefs.

Note that in FCOS derivatives we always have the root mounted
writable via `rw` on the kernel cmdline and this is the default
general expectation now with ostree usage.
@cgwalters cgwalters added the area/composefs Issues related to composefs label Jan 3, 2024
@github-actions github-actions bot added the area/prepare-root Issue relates to ostree-prepare-root label Jan 3, 2024
Copy link
Collaborator

@ericcurtin ericcurtin left a comment

Choose a reason for hiding this comment

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

LGTM

@cgwalters cgwalters merged commit 9faf556 into ostreedev:main Jan 4, 2024
24 checks passed
@cgwalters cgwalters mentioned this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/composefs Issues related to composefs area/prepare-root Issue relates to ostree-prepare-root
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants