Created
March 3, 2025 04:49
-
-
Save fangpenlin/1cc6e80b4a03f07b79412366bccf56ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cli/main.c b/src/cli/main.c | |
index 6347765..b342d0d 100644 | |
--- a/src/cli/main.c | |
+++ b/src/cli/main.c | |
@@ -40,7 +40,7 @@ static struct argp usage = { | |
}, | |
parser, | |
"COMMAND [ARG...]", | |
- "Command line utility for manipulating NVIDIA GPU containers.", | |
+ "Command line utility for manipulating NVIDIA GPU containers. (customized v0)", | |
NULL, | |
NULL, | |
NULL, | |
diff --git a/src/common.h b/src/common.h | |
index c91d349..1bd9825 100644 | |
--- a/src/common.h | |
+++ b/src/common.h | |
@@ -21,12 +21,12 @@ | |
#define PROC_OVERFLOW_GID "/proc/sys/kernel/overflowgid" | |
#define LDCACHE_PATH "/etc/ld.so.cache" | |
-#define LDCONFIG_PATH "/sbin/ldconfig" | |
+#define LDCONFIG_PATH "/run/current-system/sw/bin/ldconfig" | |
#define LDCONFIG_ALT_PATH "/sbin/ldconfig.real" | |
-#define LIB_DIR "/lib64" | |
-#define USR_BIN_DIR "/usr/bin" | |
-#define USR_LIB_DIR "/usr/lib64" | |
+#define LIB_DIR "/run/current-system/sw/lib" | |
+#define USR_BIN_DIR "/run/current-system/sw/bin" | |
+#define USR_LIB_DIR "/run/current-system/sw/lib" | |
#define USR_LIB32_DIR "/usr/lib32" | |
#define USR_LIB32_ALT_DIR "/usr/lib" | |
diff --git a/src/nvc_info.c b/src/nvc_info.c | |
index d42f2be..e12b60b 100644 | |
--- a/src/nvc_info.c | |
+++ b/src/nvc_info.c | |
@@ -249,7 +249,7 @@ find_binary_paths(struct error *err, struct dxcore_context* dxcore, struct nvc_d | |
char path[PATH_MAX]; | |
int rv = -1; | |
- if ((env = "/run/nvidia-docker/bin:/run/nvidia-docker/extras/bin") == NULL) { | |
+ if ((env = "/run/current-system/sw/bin:/run/nvidia-docker/bin:/run/nvidia-docker/extras/bin") == NULL) { | |
error_setx(err, "environment variable PATH not found"); | |
return (-1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment