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>
(cherry picked from commit 352df4e62f)
This commit is contained in:
Krzysztof Nazarewski authored and mergify-bot committed 2022-04-04 08:18:02 +00:00
1 parent 0b11101040
commit fdcfd01ffa
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