When stopping localmount, set LC_ALL=C so bash doesn't lock /usr.
This commit is contained in:
parent
8d66fe0056
commit
c5d174af17
@ -962,6 +962,11 @@ static void svc_stop (bool deps)
|
|||||||
services = NULL;
|
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)
|
if (ibsave)
|
||||||
setenv ("IN_BACKGROUND", ibsave, 1);
|
setenv ("IN_BACKGROUND", ibsave, 1);
|
||||||
hook_out = RC_HOOK_SERVICE_STOP_DONE;
|
hook_out = RC_HOOK_SERVICE_STOP_DONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user