Skip to content

Commit 6cfd3ec

Browse files
author
Samuel Moors
committed
fix
1 parent d0b8348 commit 6cfd3ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

easybuild/tools/bwrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def prepare_bwrap(bwrap_installpath):
122122

123123
mkdir(bwrap_installpath_modules, parents=True)
124124

125+
bwrap_workdir = os.path.join(bwrap_installpath, 'workdir')
126+
125127
try:
126128
mkdir(installpath_modules, parents=True)
127129
# copy installpath_modules to bwrap_installpath_moduleto ensure all installed modules are available
@@ -134,7 +136,6 @@ def prepare_bwrap(bwrap_installpath):
134136
})
135137
except EasyBuildError:
136138
# if we can't create the external modules directory, try to use overlayfs
137-
bwrap_workdir = os.path.join(bwrap_installpath, 'workdir')
138139
mkdir(bwrap_workdir, parents=True)
139140
bwrap_opts.update({
140141
f'--overlay-src {installpath_modules} --overlay {bwrap_installpath_modules} {bwrap_workdir} '

0 commit comments

Comments
 (0)