File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -281,17 +281,7 @@ class Sys(Module):
281
281
282
282
@classmethod
283
283
def _run (cls , target : Target , cli_args : argparse .Namespace , collector : Collector ) -> None :
284
- if not Path ("/sys" ).exists ():
285
- log .error ("/sys is unavailable! Skipping..." )
286
- return
287
-
288
284
spec = [("dir" , "/sys" )]
289
-
290
- sysfs = dir .DirectoryFilesystem (Path ("/sys" ))
291
-
292
- target .filesystems .add (sysfs )
293
- target .fs .mount ("/sys" , sysfs )
294
-
295
285
collector .collect (spec , follow = False , volatile = True )
296
286
297
287
@@ -303,16 +293,7 @@ class Proc(Module):
303
293
304
294
@classmethod
305
295
def _run (cls , target : Target , cli_args : argparse .Namespace , collector : Collector ) -> None :
306
- if not Path ("/proc" ).exists ():
307
- log .error ("/proc is unavailable! Skipping..." )
308
- return
309
-
310
296
spec = [("dir" , "/proc" )]
311
- procfs = dir .DirectoryFilesystem (Path ("/proc" ))
312
-
313
- target .filesystems .add (procfs )
314
- target .fs .mount ("/proc" , procfs )
315
-
316
297
collector .collect (spec , follow = False , volatile = True )
317
298
318
299
You can’t perform that action at this time.
0 commit comments