Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xcache-nspawn-lrz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ETP Computing
xcache-nspawn-lrz
Commits
49c8a03a
Commit
49c8a03a
authored
2 years ago
by
Nikolai Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
force xrootd user to uid 1000 in image
parent
54129e75
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/local/mkosi/mkosi.default
+1
-1
1 addition, 1 deletion
var/local/mkosi/mkosi.default
var/local/mkosi/mkosi.postinst
+11
-0
11 additions, 0 deletions
var/local/mkosi/mkosi.postinst
with
12 additions
and
1 deletion
var/local/mkosi/mkosi.default
+
1
−
1
View file @
49c8a03a
[Distribution]
Distribution=alma
Release=8
Repositories=
B
ase
OS
Repositories=
b
ase
os
UseHostRepositories=True
[Content]
...
...
This diff is collapsed.
Click to expand it.
var/local/mkosi/mkosi.postinst
+
11
−
0
View file @
49c8a03a
...
...
@@ -18,3 +18,14 @@ yum install -y \
python3-requests
yum
--disablerepo
=
"*"
--enablerepo
=
"osg-upcoming-testing"
install
-y
xrootd-rucioN2N-for-Xcache
echo
"Force xrootd user id to 1000"
old_uid
=
$(
id
-u
xrootd
)
old_gid
=
$(
id
-g
xrootd
)
usermod
-u
1000 xrootd
groupmod
-g
1000 xrootd
echo
"Upgrade permissions ..."
# exclude /proc since this would try to modify the fd of the find process
find /
-path
/proc
-prune
-o
-uid
${
old_uid
}
-exec
chown
-h
xrootd
{}
\;
find /
-path
/proc
-prune
-o
-gid
${
old_gid
}
-exec
chgrp
-h
xrootd
{}
\;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment