avoidFileSystem()
needs to handle an alternate rootfs
#141
Labels
Team:Elastic-Agent
Label for the Agent team
avoidFileSystem()
needs to handle an alternate rootfs
#141
Right now,
avoidFileSystem()
infilesystem.go
doesn't really have any understanding of an alternate hostfs set via a resolver:It should use the resolver for the
os.Stat
call. However, there's some added complexity here, as in my experience, not all users will mount the entirety of/
at/hostfs
, which means we'll need some kind of check where ifhostfs.IsSet() && err == ENOENT
then we print a special error message or something.The text was updated successfully, but these errors were encountered: