aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-11-18 14:08:59 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-11-18 14:08:59 -0500
commit4081b20f9f1c6837ae06704422215eb51910491b (patch)
treec2845ea3caa269dc5f04dd2e7577ac3875b62188 /grs/MountDirectories.py
parentgrs/Interpret.py: fix typo (diff)
downloadgrss-4081b20f9f1c6837ae06704422215eb51910491b.tar.gz
grss-4081b20f9f1c6837ae06704422215eb51910491b.tar.bz2
grss-4081b20f9f1c6837ae06704422215eb51910491b.zip
grs/MountDirectories.py: location of /usr/portage is configurable
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'grs/MountDirectories.py')
-rw-r--r--grs/MountDirectories.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/grs/MountDirectories.py b/grs/MountDirectories.py
index 692c320..a1a42af 100644
--- a/grs/MountDirectories.py
+++ b/grs/MountDirectories.py
@@ -27,7 +27,7 @@ class MountDirectories():
"""
def __init__(self, portage_configroot=CONST.PORTAGE_CONFIGROOT, \
- package=CONST.PACKAGE, logfile=CONST.LOGFILE):
+ package=CONST.PACKAGE, portage=CONST.PORTAGE, logfile=CONST.LOGFILE):
# The order is respected. Note that 'dev' needs to be mounted beore 'dev/pts'.
self.directories = [
'dev',
@@ -35,12 +35,13 @@ class MountDirectories():
{'dev/shm' : ('tmpfs', 'shm')},
'proc',
'sys',
- 'usr/portage',
+ [portage, 'usr/portage'],
[package, 'usr/portage/packages']
]
# Once initiated, we only work with one portage_configroot
self.portage_configroot = portage_configroot
self.package = package
+ self.portage = portage
self.logfile = logfile
# We need to umount in the reverse order
self.rev_directories = deepcopy(self.directories)