Update Installation instructions authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
......@@ -43,8 +43,7 @@ mkosi -i -t directory -o /var/lib/machines/xcache-$(date +%Y-%m-%d-%H%M)
img_name=xcache-$(date +%Y-%m-%d-%H%M)
dnf -y --installroot /var/lib/machines/$img_name --releasever=7 install system-release bash yum
rsync -av /var/local/mkosi/mkosi.extra/ /var/lib/machines/$img_name
cp /var/local/mkosi/mkosi.postinst /var/lib/machines/$img_name/
systemd-nspawn -D /var/lib/machines/$img_name /bin/bash
cp /var/local/mkosi/mkosi.postinst /var/lib/machines/$img_name
systemd-nspawn -D /var/lib/machines/$img_name bash /mkosi.postinst
```
......@@ -53,15 +52,18 @@ We will map the xrootd user id inside the container (typically 999) to one shift
```bash
# for some reason that command might add a carriage return (therefore the sed) ...
XRD_UID_INSIDE=$(systemd-nspawn -D /var/lib/machines/$img_name id -u xrootd | sed 's/\r//')
XRD_GID_INSIDE=$(systemd-nspawn -D /var/lib/machines/$img_name id -g xrootd | sed 's/\r//')
let "XRD_UID_HOST = $XRD_UID_INSIDE + 65536 * 10"
let "XRD_GID_HOST = $XRD_GID_INSIDE + 65536 * 10"
useradd --no-create-home --system -u $XRD_UID_HOST xrootd
groupmod -g $XRD_GID_HOST xrootd
```
# Directories for bind mounts
Create directories for bind mounts and make them owned by xrootd where nescessary
```bash
mkdir -p /var/spool/xrootd /var/run/xrootd /srv/data/xrootd/namespace /srv/data/xrootd/xrdcinfos /srv/data/xrootd/data
chown xrootd /var/spool/xrootd /var/run/xrootd /srv/data/xrootd/namespace /srv/data/xrootd/xrdcinfos /srv/data/xrootd/data
chown xrootd:xrootd /var/spool/xrootd /var/run/xrootd /srv/data/xrootd/namespace /srv/data/xrootd/xrdcinfos /srv/data/xrootd/data
# if not existing
mkdir -p /etc/grid-security
......
......