From c5d174af172c00dc8f5cf6988cca788067195e15 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 4 Mar 2008 22:52:48 +0000 Subject: [PATCH] When stopping localmount, set LC_ALL=C so bash doesn't lock /usr. --- src/rc/runscript.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rc/runscript.c b/src/rc/runscript.c index b0982f65..715c98b8 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;