Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707318 - sys-apps/portage: add FEATURE to remount readonly filesystems as writable (or mount unmounted filesystems) on-demand
Summary: sys-apps/portage: add FEATURE to remount readonly filesystems as writable (or...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: Normal normal with 2 votes (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 378869
Blocks: 710618
  Show dependency tree
 
Reported: 2020-01-29 20:51 UTC by Zac Medico
Modified: 2022-11-11 19:24 UTC (History)
7 users (show)

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


Attachments
quick patch for testing purposes, automatically remount rw (ro_checker-automatically-remount-rw.patch,1.03 KB, patch)
2020-01-29 21:07 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.