diff --git a/cmd/lotus-storage-miner/init.go b/cmd/lotus-storage-miner/init.go index 03537d820..ef52235dd 100644 --- a/cmd/lotus-storage-miner/init.go +++ b/cmd/lotus-storage-miner/init.go @@ -200,11 +200,12 @@ var initCmd = &cli.Command{ if err := ioutil.WriteFile(filepath.Join(lr.Path(), "sectorstore.json"), b, 0644); err != nil { return xerrors.Errorf("persisting storage metadata (%s): %w", filepath.Join(lr.Path(), "storage.json"), err) } + + sc.StoragePaths = append(sc.StoragePaths, config.LocalPath{ + Path: lr.Path(), + }) } - sc.StoragePaths = append(sc.StoragePaths, config.LocalPath{ - Path: lr.Path(), - }) if err := lr.SetStorage(sc); err != nil { return xerrors.Errorf("set storage config: %w", err)