summaryrefslogtreecommitdiff
path: root/libfstools/extroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfstools/extroot.c')
-rw-r--r--libfstools/extroot.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libfstools/extroot.c b/libfstools/extroot.c
index 418df94..7cc0b19 100644
--- a/libfstools/extroot.c
+++ b/libfstools/extroot.c
@@ -23,13 +23,11 @@
#include "libfstools.h"
-char const *extroot_prefix = NULL;
-
/*
* This will execute "block extroot" and make use of mounted extroot or return
* an error.
*/
-int mount_extroot(void)
+int mount_extroot(char const *extroot_prefix)
{
char ldlib_path[32];
char block_path[32];
@@ -37,9 +35,6 @@ int mount_extroot(void)
struct stat s;
pid_t pid;
- if (!extroot_prefix)
- return -1;
-
/* try finding the library directory */
snprintf(ldlib_path, sizeof(ldlib_path), "%s/upper/lib", extroot_prefix);