Skip to content

Commit

Permalink
feat: adding to local cfg platform and CVMFS_locations
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Apr 22, 2024
1 parent c9bfc41 commit 632c920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ def _getBasicsCFG(self):
if self.pp.userDN:
self.cfg.append('-o /AgentJobRequirements/OwnerDN="%s"' % self.pp.userDN)
self.cfg.append("-o /LocalSite/ReleaseVersion=%s" % self.releaseVersion)
# add the installation locations
self.cfg.append("-o /LocalSite/CVMFS_locations=%s" % ",".join(self.pp.CVMFS_locations))

if self.pp.wnVO:
self.cfg.append('-o "/Resources/Computing/CEDefaults/VirtualOrganization=%s"' % self.pp.wnVO)
Expand Down Expand Up @@ -940,6 +942,10 @@ def execute(self):
localArchitecture = localArchitecture.strip().split("\n")[-1].strip()
cfg.append('-S "%s"' % self.pp.setup)
cfg.append("-o /LocalSite/Architecture=%s" % localArchitecture)

# add the local platform as determined by the platform module
localPlatform = platform.system() + "-" + platform.machine()
cfg.append("-o /LocalSite/Platform=%s" % localPlatform)

configureCmd = "%s %s" % (self.pp.configureScript, " ".join(cfg))
retCode, _configureOutData = self.executeAndGetOutput(configureCmd, self.pp.installEnv)
Expand Down

0 comments on commit 632c920

Please sign in to comment.