containers-common/update.sh
Lokesh Mandvekar 575d270498 containers-common-4:1-10
- install shortnames.conf as 000-shrotnames.conf

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-02-18 10:19:40 -05:00

23 lines
830 B
Bash
Executable File

#!/usr/bin/bash
spectool -fg containers-common.spec
echo "Changing storage.conf..."
sed -i -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' \
storage.conf
echo "Changing seccomp.json..."
[ `grep "keyctl" seccomp.json | wc -l` == 0 ] && sed -i '/\"kill\",/i \
"keyctl",' seccomp.json
sed -i '/\"socketcall\",/i \
"socket",' seccomp.json
echo "Changing registries.conf..."
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "docker.io", "quay.io"]/g' \
registries.conf
grep '\nshort-name-mode="enforcing"' registries.conf
if [[ $? == 1 ]]; then
echo -e '\nshort-name-mode="enforcing"' >> registries.conf
fi