diff options
author | Ed Santiago <santiago@redhat.com> | 2022-08-31 13:47:05 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2022-08-31 13:47:05 -0600 |
commit | 5faf4eff10116df32ed5554bb230acb2e3b54c66 (patch) | |
tree | 7b51fb06502a001b4995d834bdc1b59952be3d49 /contrib | |
parent | 07413f2035a22e8766a723349b3a4a8ae17b8898 (diff) | |
download | podman-5faf4eff10116df32ed5554bb230acb2e3b54c66.tar.gz podman-5faf4eff10116df32ed5554bb230acb2e3b54c66.tar.bz2 podman-5faf4eff10116df32ed5554bb230acb2e3b54c66.zip |
Cirrus: pick UIDs/GIDs starting at 1500, not 1000
Reason: looks like UIDs 1001, 1003, 1006 are already taken
in the CI VMs.
Fixes: #15573
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/cirrus/lib.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index e7ea05867..b03a3da3e 100644 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -158,9 +158,9 @@ setup_rootless() { msg "************************************************************" cd $GOSRC || exit 1 # Guarantee independence from specific values - rootless_uid=$[RANDOM+1000] + rootless_uid=$((1500 + RANDOM % 5000)) ROOTLESS_UID=$rootless_uid - rootless_gid=$[RANDOM+1000] + rootless_gid=$((1500 + RANDOM % 5000)) msg "creating $rootless_uid:$rootless_gid $ROOTLESS_USER user" groupadd -g $rootless_gid $ROOTLESS_USER useradd -g $rootless_gid -u $rootless_uid --no-user-group --create-home $ROOTLESS_USER |