From aad981c169ee57e3befb2d3d09a62aa531595132 Mon Sep 17 00:00:00 2001 From: Mikita Iwanowski Date: Sat, 14 Dec 2024 00:14:58 +0100 Subject: [PATCH] =?UTF-8?q?debug:=20what's=20up=20with=20etc/ssh=20on=20th?= =?UTF-8?q?ese=20fedoras=20=F0=9F=95=B5=F0=9F=8F=BB=E2=80=8D=E2=99=82?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/os/connection/device/device_connection.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/providers/os/connection/device/device_connection.go b/providers/os/connection/device/device_connection.go index 6e602e2e6..c34f8f366 100644 --- a/providers/os/connection/device/device_connection.go +++ b/providers/os/connection/device/device_connection.go @@ -5,6 +5,7 @@ package device import ( "errors" + "os" "path" "runtime" "strings" @@ -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