Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133090 - Bash opens /usr/lib/locale/ files when built with USE=nls preventing unmounting of /usr
Summary: Bash opens /usr/lib/locale/ files when built with USE=nls preventing unmounti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 00:46 UTC by sharpshopter
Modified: 2006-05-24 12:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sharpshopter 2006-05-12 00:46:30 UTC
Bash opens files in the /usr/lib/locale folder.  This makes it hard to impossible to unmount /usr, even in signle user mode

Steps to Reproduce:
Login to a virtual console (ie. not X) as root.
Go to single user mode (telinit 1).
type 'umount /usr'

Actual Results:
'umount: /usr: device is busy'

Expected Results:
/usr is unmounted

At this stage, doing
lsof | grep '/usr'
will reveal the culprit.

Workaround:
move /usr/lib/locale somewhere safe
start bash again (ie. logout and login).  bash fails to find /usr/lib/locale/stuff but continues silently
unmount /usr
do your stuff
remount /usr
move /usr/lib/locale back
optionally logout and login again
Comment 1 SpanKY gentoo-dev 2006-05-12 20:55:25 UTC
known issue which has been semi-worked around in baselayout-1.12.x a while ago:

  04 Sep 2005; Martin Schlemmer <azarah@gentoo.org>:

    Do not unmount /usr, but rather remount it ro, else we run into issues
    with systems that have locales enabled, as the fuser call in halt.sh tries
    to kill bash (due to it using /usr/lib/locale/*).
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-05-24 12:44:51 UTC
Should be fixed in baselayout-1.12.0-r1 - if not, re-open.