add migration instructions for el8 authored by Nikolai Hartmann's avatar Nikolai Hartmann
......@@ -47,7 +47,7 @@ build_image.sh /var/lib/machines/$img_name
**after building the image don't forget to [set the permissions for the image](#set-permissions-for-image)**
# Create xrootd user in host system
We will map the xrootd user id inside the container (typically 999) to one shifted by 65536 * 10 on the host system. This is an arbitrary choice and one should check this range of user ids is not used by anything else. Problem with this: what if we create a new image and for some reason xrootd ends up being a different user - then it won't be correct anymore for this image. One solution would be to force the user id inside the container to be a fixed one during image building ...
We will map the xrootd user id inside the container to one shifted by 65536 * 10 on the host system. This is an arbitrary choice and one should check this range of user ids is not used by anything else. One also has to be careful that the xrootd user id does not change when a new image is built. The image building script now force sets the user id to 1000 so this should be fine. See [[Migrate xrootd user]] for how to change the host xrootd user later if needed.
```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//')
......
......