From 4bc61864da6b5b90a55d86e9e81c94558f082de2 Mon Sep 17 00:00:00 2001 From: Muhamad Azamy Date: Tue, 28 Nov 2023 09:57:06 +0100 Subject: [PATCH] fix typo --- pkg/flist/flist.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/flist/flist.go b/pkg/flist/flist.go index 2a4f45c16..e415c72e3 100644 --- a/pkg/flist/flist.go +++ b/pkg/flist/flist.go @@ -328,8 +328,8 @@ func (f *flistModule) mountOverlay(ctx context.Context, name, ro string, opt *pk return errors.Wrap(err, "failed to create overlay mountpoint") } - persited := opt.PersistedVolume - if len(persited) == 0 { + persisted := opt.PersistedVolume + if len(persisted) == 0 { // no persisted volume provided, hence // we need to create one, or find one that is already // there @@ -360,12 +360,12 @@ func (f *flistModule) mountOverlay(ctx context.Context, name, ro string, opt *pk } } - persited = volume.Path + persisted = volume.Path } - log.Debug().Str("persisted-path", persited).Str("name", name).Msg("using persisted path for mount") - rw := filepath.Join(persited, "rw") - wd := filepath.Join(persited, "wd") + log.Debug().Str("persisted-path", persisted).Str("name", name).Msg("using persisted path for mount") + rw := filepath.Join(persisted, "rw") + wd := filepath.Join(persisted, "wd") for _, d := range []string{rw, wd} { if err := os.MkdirAll(d, 0755); err != nil { return errors.Wrapf(err, "failed to create overlay directory: %s", d)