Skip to content

incusd/storage: fix squashfs unpacking to NFS destinations #2148

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

Closed
wants to merge 1 commit into from

Conversation

mrstux
Copy link

@mrstux mrstux commented May 27, 2025

NFS4v2 supports user.xattrs, and can be used with Incus via the dir driver, but image unpacking will fail when the container image uses non-user xattrs such as security.xattr

This fix will skip extraction of security.xattrs when extracting to an NFS hosted directory

The fix is not specific to the dir driver, and could benefit a future NFS driver (#2025)

In my testing, privileged containers can successfully be started from NFS hosted dir storage pools.

@mrstux mrstux requested a review from stgraber as a code owner May 27, 2025 05:15
NFS4v2 supports user.xattr, and can be used with Incus via the dir driver,
but image unpacking will fail when the container image uses non-user xattrs
such as security.xattr

This fix will skip extraction of security.xattrs when extracting to an NFS
hosted directory

The fix is not specific to the dir driver, and could benefit a future NFS
driver too.

Signed-off-by: Stuart Espey <stuart.espey@mactrix.com>
@stgraber
Copy link
Member

Superseded by #2149. I'd normally push minor fixes directly to the branch but that doesn't typically work when the origin repository belongs to an organization (as is the case here with truenas).

@stgraber stgraber closed this May 27, 2025
@Foxboron
Copy link
Contributor

Ah, thanks for this fix. It's what originally pushed me to look at an nfs storage driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants