From 64815087c45ca5afdeac71ed329c9eefec861e35 Mon Sep 17 00:00:00 2001 From: Pavel Timofeev Date: Wed, 3 Jun 2026 11:04:26 -0600 Subject: [PATCH] utils/mount/mount_linux.go: replace 'mkdir -p' invocation with MkdirAll() standard Go function It makes trident possible to use on Talos at least with NFS https://github.com/NetApp/trident/issues/806 mount.nfs* tools are already being added to the image, see https://github.com/NetApp/trident/blob/v26.02.1/Dockerfile#L13 for example. So `mkdir` was the only reason why trident could not be used on Talos with NFS4 --- utils/mount/mount_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/mount_linux.go b/utils/mount/mount_linux.go index 98acdc113..62a4f9e7a 100644 --- a/utils/mount/mount_linux.go +++ b/utils/mount/mount_linux.go @@ -197,7 +197,7 @@ func (client *LinuxClient) MountNFSPath(ctx context.Context, exportPath, mountpo } // Create the mount point dir if necessary - if _, err := client.command.Execute(ctx, "mkdir", "-p", mountpoint); err != nil { + if err := client.os.MkdirAll(mountpoint, 0o755); err != nil { Logc(ctx).WithField("error", err).Warning("Mkdir failed.") }