Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
readonly /usr
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 319

PostPosted: Wed Jun 29, 2016 7:44 am    Post subject: readonly /usr Reply with quote

Hello,
until recently there was no problem with readonly /USR. When I try to update @world now, I get
Code:
$> sudo etc-update
Scanning Configuration files...
etc-update: ERROR: Need write access to /usr/share/config
Why is that? Doesn't configuration belong into /etc ?
I think that using links (ln -s /etc/share/config /usr/share/config) as a workaround might cause trouble - sooner or later.

http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04.html#purpose18
Quote:
/usr is the second major section of the filesystem. /usr is shareable, read-only data. That means that /usr should be shareable between various FHS-compliant hosts and must not be written to. Any information that is host-specific or varies with time is stored elsewhere.


Last edited by as.gentoo on Sun Sep 25, 2016 10:03 pm; edited 3 times in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Wed Jun 29, 2016 10:01 am    Post subject: Reply with quote

interesting... is that a gentoo specific file? it might need to be moved to /var (variable)
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Wed Jun 29, 2016 10:43 am    Post subject: Reply with quote

For what it's worth, I have no /usr/share/config directory, but /usr/share/nano contains a handful of files that are ostensibly "configuration." I have in the past made minor changes to some of those files, which causes them to appear to etc-update when nano is rebuilt or updated.

I have no objection to this behavior, just pointing it out.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Jun 29, 2016 11:15 am    Post subject: Reply with quote

You should also play well the "shared" game.

If your host is using something from /usr than it's upto your server that provide the /usr part to be update to provide latest version of what is need in /usr.
As soon as your server is update the /usr/share/config should match yours and etc-update have no reason to complains as the files are the same.
Back to top
View user's profile Send private message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 319

PostPosted: Sun Sep 25, 2016 8:36 pm    Post subject: Reply with quote

My apologies for the late reply!

Somehow - when I click "topics started by me" (or however it's called in English) - I always get exactly one "owned" topic … and it is not this one … nor mine at all.
EDIT: Posting here brings this thread back on my "my threads" list. Is this the result of the move of forums.gentoo.org some time ago?

@Naib: +1
@Krinn: I don't know if I understood. If I did: this is a desktop machine running X. There is no server serving binaries or syncing directories.

However, when I run the following to query for write-locked files
Code:
$> sudo lsof +D /usr/ | awk 'NR==1 || $4~/[0-9][uw]/'
COMMAND     PID    USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
$> lsof +D /usr | awk 'NR==1 || $4~/[0-9][w]/'
COMMAND     PID    USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
$>
there is no output
but there are many to be deleted files
Code:
$> sudo lsof /usr | grep -i del | wc -l
2940
$>
among those - apart from lib* and (s)bin - there are many files in /usr/share/[fonts,icons,mime,locale]. Is it likely that marked-for-deletion is a result of executing emerge @world?
If not, I'm tempted to create a softlink like ln -s /usr/share /var/usr/share. Is there anything strongly speaking against this?
EDIT: ln -s /var/usr/share /usr/share would be correct.

And maybe it is a good idea to execute emerge @world once a week instead of each day, in single mode.


Last edited by as.gentoo on Mon Sep 26, 2016 7:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Sep 25, 2016 10:54 pm    Post subject: Reply with quote

Don't know if the original post is still relevant, but dispatch-conf is an alternative to etc-update that may not have the same problem. They both come with portage.
Back to top
View user's profile Send private message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 319

PostPosted: Mon Sep 26, 2016 8:08 am    Post subject: Reply with quote

Ant P. wrote:
Don't know if the original post is still relevant, but dispatch-conf is an alternative to etc-update that may not have the same problem. They both come with portage.
No, it isn't. I just remounted /usr rw… :-\
Interesting, I will see if dispatch-conf handles this differently when it occurs again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum