osd: add NixOS specific PATHs

This commits makes Rook usable on NixOS.

NixOS system holds "installed" binaries in `/run/current-system/sw/{bin,sbin}`.
The only binaries residing outside those paths are `/usr/bin/env` and `/bin/sh`.

I got a suggestion on Slack to simply add those NixOS specific paths

Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
This commit is contained in:
Krzysztof Nazarewski committed 2022-04-01 16:37:23 +02:00
1 parent 55a8fb9b8e
commit 352df4e62f
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ const (
)
var (
binPathsToCheck = []string{"/usr/sbin", "/sbin/"}
binPathsToCheck = []string{"/usr/sbin", "/sbin/", "/run/current-system/sw/bin", "/run/current-system/sw/sbin"}
)
// NSEnter is an nsenter object