Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28578 - portage should check for RO mounts
Summary: portage should check for RO mounts
Status: RESOLVED DUPLICATE of bug 23851
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 23675 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-12 21:32 UTC by chris-gentoo
Modified: 2005-10-07 08:11 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 chris-gentoo 2003-09-12 21:32:48 UTC
I've got a box that usually runs with /usr mounted read only and I frequently find myself 
forgetting to remount rw before running emerge. 
When installing this isn't really a problem, just remount, then emerge --resume 
But when unmerging the unmerge just pushes on leaving bits and pieces of the app all over 
/usr, so I have to manually go through the log and track down all the files that were left behind. 
 
There must be a more graceful way that portage can alert me to this.
Comment 1 chris-gentoo 2003-09-12 22:39:35 UTC
> When installing this isn't really a problem, just remount, then emerge --resume  
 
My mistake, this actually isn't very pretty, as the problem isn't detected until the merge 
phase, and --resume causes the source to be unpacked again and recompiles 
Comment 2 SpanKY gentoo-dev 2003-09-13 00:36:10 UTC
`ebuild <ebuild> qmerge`
Comment 3 chris-gentoo 2003-09-13 01:09:40 UTC
That solves the emerge problem, what about unmerge? 
 
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 12:40:47 UTC
*** Bug 23675 has been marked as a duplicate of this bug. ***
Comment 5 Brian Harring (RETIRED) gentoo-dev 2004-08-17 01:06:20 UTC
A better fix is having unmerge flat out bail when it fails to remove a file (not the current behaviour).
Comment 6 chris-gentoo 2004-08-25 08:34:25 UTC
Even better would be if portage could pause and give the user a chance to fix it, same as the -a option stops you from having to recalculate dependancies after a -p
Then after the pause (when the user has fixed the problem and hit enter) the unmerge could resume from the file that failed and caused the pause.
Comment 7 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-01-06 22:23:48 UTC
While I'm all for giving the using more output and bailing properly when things fail, having portage wait for you to fix your errors is kind of siilly IMHO.  If you forget to mount /usr RW before you emerge stuff, write a script to do it.  I don't really see how it's portage's responsibility to detect it and let you fix it in a timely manner.
Comment 8 chris-gentoo 2005-01-26 04:15:42 UTC
That's a fair enough call, but portage should at least fail fast so as to leave itself in a correct state.
It seems I was mistaken in Comment #1 - I just did a merge of 7 packages with /usr mounted read only, and it "completed successfully".
Even rerunning the original command won't solve it now because portage thinks the dependencies are now installed, so it only tries to re-merge the last package.
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-10-07 08:11:54 UTC

*** This bug has been marked as a duplicate of 23851 ***