Skip to content

Conversation

@Johan-Liebert1
Copy link
Collaborator

Previously we were mounting a rw overlay on top of /usr using mount -t overlay -olowerdir=/usr,workdir=...,upperdir=... overlay /usr which caused the kernel to throw
overlayfs: maximum fs stacking depth exceeded
possibly because the mountpoint was the same as the lowerdir

Also, move the overlay mount BEFORE we mask off /sysroot/ostree else bootc throws error: Read only filesystem

Previously we were mounting a rw overlay on top of /usr using
`mount -t overlay -olowerdir=/usr,workdir=...,upperdir=... overlay /usr`
which caused the kernel to throw
`overlayfs: maximum fs stacking depth exceeded`
possibly because the mountpoint was the same as the lowerdir

Also, move the overlay mount BEFORE we mask off `/sysroot/ostree` else
bootc throws `error: Read only filesystem`

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@bootc-bot bootc-bot bot requested a review from ckyrouac December 24, 2025 13:33
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates two test files, test-install-outside-container.nu and test-install-unified-flag.nu, to use the bootc usr-overlay command. This replaces the manual creation of an overlay mount on /usr, which was causing kernel errors. The change also correctly reorders the operations, creating the overlay before masking /sysroot/ostree, to fix a Read only filesystem error. These changes make the test setup cleaner, more robust, and align with the intended usage of bootc tooling. The implementation is correct and improves the reliability of the tests.

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.

1 participant