Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 707318

Summary: sys-apps/portage: add FEATURE to remount readonly filesystems as writable (or mount unmounted filesystems) on-demand
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: creideiki+gentoo-bugzilla, dschridde+gentoobugs, emilien.mottet, gentoo.2019, gentoo, till2.schaefer, whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=532264
https://bugs.gentoo.org/show_bug.cgi?id=713870
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 378869    
Bug Blocks: 710618    
Attachments: quick patch for testing purposes, automatically remount rw

Description Zac Medico gentoo-dev 2020-01-29 20:51:48 UTC
Portage has a check (from bug 378869) which causes it to bail out if it needs to write to a readonly filesystem. I would be useful to have a feature to remount such filesystems as writable on-demand.
Comment 1 Zac Medico gentoo-dev 2020-01-29 21:07:58 UTC
Created attachment 608556 [details, diff]
quick patch for testing purposes, automatically remount rw

You'll have to set DONT_MOUNT_BOOT=1 in order to prevent mount-boot.eclass from calling die in pkg_pretend.
Comment 2 Zac Medico gentoo-dev 2020-01-29 21:23:54 UTC
Typically /boot is simply not mounted, and the mountpoint is writable, so perhaps the code for bug 378869 should be extended to check for unmounted filesystems rather than just readonly filesystems.