summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/runscript.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index b0982f6..715c98b 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -962,6 +962,11 @@ static void svc_stop (bool deps)
services = NULL;
}
+ /* If we're stopping localmount, set LC_ALL=C so that
+ * bash doesn't load anything blocking the unmounting of /usr */
+ if (strcmp (applet, "localmount") == 0)
+ setenv ("LC_ALL", "C", 1);
+
if (ibsave)
setenv ("IN_BACKGROUND", ibsave, 1);
hook_out = RC_HOOK_SERVICE_STOP_DONE;