Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65924 - /etc/init.d/xfs assume /usr is writable
Summary: /etc/init.d/xfs assume /usr is writable
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-30 08:32 UTC by Douglas Pollock
Modified: 2009-06-19 14:26 UTC (History)
0 users

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 Douglas Pollock 2004-09-30 08:32:47 UTC
The current xfs init script assumes that the directories containing the fonts are writable.  However, "/usr" on my system is mounted as read-only.  According to the Filesystem Hierarchy Standard ("http://www.pathname.com/fhs/"), this is a perfectly valid system configuration.

Ideally, the xfs script should be able to handle this case.

This can either be done by a quick hack (`mount -a -o remount,rw` followed by a `mount -a -o remount` when done), or by a more complete solution (e.g., examining the path of elements of each write and checking fstab to see if a mount point needs to be remounted read-write).
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-30 12:37:51 UTC
Yeah, I've been aware of this. But it's impossible to assume that /usr is even mountable rw -- e.g., read-only NFS mounts. The better solution, IMHO, would be to error out if it's ro. Which is basically just going to prettify the current output.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-30 12:38:37 UTC
I mean error out of the part that involves writing and attempt to start xfs anyway.
Comment 3 Douglas Pollock 2004-09-30 12:42:29 UTC
Good point.  It would still be nice if it tried, however ... for those of with (the potential for) RW access to /usr.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-30 12:46:13 UTC
It would be nice,  yes. But would it be the write thing to do? (Bad pun, sorry.) Maybe the admin never wants /usr mounted rw without specifically doing so even if it is possible.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-30 15:04:31 UTC
So, we'll add something to /etc/conf.d/xfs like "FORCE_RW_MOUNT=yes" instead of the broken autodetection.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-11 13:07:09 UTC
Zzzzz... this didn't move an inch further for 3+ years, how about WONTFIX? 
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-06-19 14:26:25 UTC
And another 2 years went by. Seems nobody in their right mind uses xfs anymore... which is a Good Thing (tm).

Closing