Skip to content

Commit

Permalink
debug: what's up with etc/ssh on these fedoras πŸ•΅πŸ»β€β™‚οΈ
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 13, 2024
1 parent ae3336b commit aad981c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions providers/os/connection/device/device_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package device

import (
"errors"
"os"
"path"
"runtime"
"strings"
Expand Down Expand Up @@ -196,6 +197,12 @@ func tryDetectAsset(connId uint32, partition *snapshot.PartitionInfo, conf *inve
fsPath = path.Join(fsPath, partition.Bind)
}

// debug
etc, err := os.ReadDir(path.Join(fsPath, "etc"))
log.Debug().Any("etc", etc).Err(err).Msg("device connection> etc dir")
ssh, err := os.ReadDir(path.Join(fsPath, "etc", "ssh"))
log.Debug().Any("ssh", ssh).Err(err).Msg("device connection> etc/ssh dir")

// create and initialize fs provider
log.Debug().Str("path", fsPath).Msg("device connection> trying to detect asset")
conf.Options["path"] = fsPath
Expand Down

0 comments on commit aad981c

Please sign in to comment.