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:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user