From bfbf01863879a97f89493536c5318167c8c2c46f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 29 Jan 2020 13:02:35 -0800 Subject: [PATCH] ro_checker: automatically remount rw Bug: https://bugs.gentoo.org/707318 Signed-off-by: Zac Medico --- lib/portage/util/writeable_check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/portage/util/writeable_check.py b/lib/portage/util/writeable_check.py index e5b14c023..fcfb4b2f9 100644 --- a/lib/portage/util/writeable_check.py +++ b/lib/portage/util/writeable_check.py @@ -14,6 +14,7 @@ from __future__ import unicode_literals import io import logging import os +import subprocess from portage import _encodings from portage.util import writemsg_level @@ -112,7 +113,10 @@ def linux_ro_checker(dir_list): except KeyError: pass - return ro_filesystems + for mountpoint in ro_filesystems: + subprocess.call(['mount', '-o', 'remount,rw', mountpoint]) + + return set() def empty_ro_checker(dir_list): -- 2.24.1