Skip to content

feat: add trident-nfs-tools extension for NFS support on Talos#1141

Open
ohauer wants to merge 1 commit into
siderolabs:mainfrom
ohauer:feat/trident-nfs-tools
Open

feat: add trident-nfs-tools extension for NFS support on Talos#1141
ohauer wants to merge 1 commit into
siderolabs:mainfrom
ohauer:feat/trident-nfs-tools

Conversation

@ohauer

@ohauer ohauer commented Jul 3, 2026

Copy link
Copy Markdown

Summary

Adds a new trident-nfs-tools system extension that provides /usr/local/sbin/mkdir (busybox) on the Talos host.

Problem

Trident's chwrap mechanism shells out to mkdir to create NFS mountpoint directories before calling mount.nfs4. Talos Linux does not ship mkdir or any coreutils, causing all NFS mounts to fail:

Mkdir failed: exit status 2
error mounting NFS volume ... exit status 32

The iSCSI code path uses Go's native os.MkdirAll() and is not affected. Only the NFS path shells out to the binary.

What's Included

  • /usr/local/sbin/mkdir — busybox multi-call binary (only depends on musl libc)

Testing

  • Confirmed mkdir is not present on Talos v1.13.x hosts
  • Confirmed chwrap searches /usr/local/sbin/ and will find the binary
  • Extension passes extensions-validator

Related

Note

Once Trident PR #1152 is merged (replaces mkdir shell-out with os.MkdirAll()), this extension will no longer be needed. Until then, it unblocks NFS on Talos.

Trident's chwrap mechanism shells out to mkdir to create NFS mountpoint
directories. Talos Linux does not ship mkdir, causing NFS mounts to fail
with exit status 32.

This extension provides /usr/local/sbin/mkdir (busybox) on the host,
enabling Trident NFS volumes to work on Talos.

Upstream fix: NetApp/trident#1152
Related: NetApp/trident#806

Signed-off-by: Oliver Hauer <ohauer@users.noreply.github.com>
@talos-bot talos-bot moved this to In Review in Planning Jul 3, 2026
@frezbo

frezbo commented Jul 3, 2026

Copy link
Copy Markdown
Member

If there's a PR upstream i would suggest to wait until it's available, it;s not simple to remove an extension once it's published, there's a lot of downstream consumers that would need extra code to handle unpublished extensions

@smira

smira commented Jul 6, 2026

Copy link
Copy Markdown
Member

@kevintijssen your opinion?

@kevintijssen

Copy link
Copy Markdown
Member

@kevintijssen your opinion?

I agree with @frezbo. I have tested NFSv4 without any issues so far. I noticed the mkdir message when using nfs but did not had any impact.

@smira smira moved this from In Review to On Hold in Planning Jul 6, 2026
@smira

smira commented Jul 6, 2026

Copy link
Copy Markdown
Member

@kevintijssen your opinion?

I agree with @frezbo. I have tested NFSv4 without any issues so far. I noticed the mkdir message when using nfs but did not had any impact.

thanks, I put it on hold for now

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

Labels

None yet

Projects

Status: On Hold

Development

Successfully merging this pull request may close these issues.

5 participants