From 11d8b4bf3882c75da7761fcc6e13ed5c0e502a81 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 6 Mar 2024 19:16:22 +0300 Subject: [PATCH] Use os.MkdirAll --- pkg/mounter/geesefs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mounter/geesefs.go b/pkg/mounter/geesefs.go index 1b56325..3e2ff17 100644 --- a/pkg/mounter/geesefs.go +++ b/pkg/mounter/geesefs.go @@ -193,7 +193,7 @@ func (geesefs *geesefsMounter) Mount(target, volumeID string) error { conn.ResetFailedUnit(unitName) } } - err = os.Mkdir("/run/systemd/system/" + unitName + ".d", 0755) + err = os.MkdirAll("/run/systemd/system/" + unitName + ".d", 0755) if err == nil { // force & lazy unmount to cleanup possibly dead mountpoints err = os.WriteFile(